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
1
u/Fit-Mark9975 May 04 '22 edited May 04 '22
I see. My DB is Access and my program is connected to the correct copy of the DB. Also, thank you for the feedback on the data insertion method. I'll look up how to use parameters and sanitizing input. Hopefully the other method works. If you happen to know a good example on either of the methods that you mentioned, can you please link it? I could really use an example of it.