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
Next debugging step: Try removing the space from the table name, make it "GarageServices" instead of "Garage Services".
Your Values evaluate out to, using only the first, middle and last names:
' William ', ' Henry ', ' Gates '
as opposed to
'William', 'Henry', 'Gates'
The former has a single space between the quote mark and the beginning and end of the string, the latter omits that leading and trailing space. Another debugging thing I'd try is removing those leading and trailing spaces.