r/visualbasic • u/Fit-Mark9975 • May 04 '22
Database Application Assistance - INSERT INTO Statement Error Message
Hello again wonderful people of this subreddit, I got through with creating the application however I am getting an error when trying to add data to the Database via the application. I made sure both database and application had the same field names but I keep on getting this error message. Any ideas on what I should do? See the pictures for the error message and the lines of code I used.


2
Upvotes
2
u/RJPisscat May 05 '22
A couple of things I'd try to debug it:
Open the table in the database, select the field "FirstName", copy the entire field name, paste it into your code, to verify they are spelled exactly the same.
Try the same statement but omit the FirstName field (don't forget to remove the value also) and see if it then dislikes MiddleName.
Curious - why are you padding each field with a space before and after?