vaughn9
Technical User
- Sep 23, 2001
- 183
I am using an adodc control and a datagrid to store text box data from visual basic. The word Month is being used as one of the field names in my databae but every time I try to run the code viusal basic gives me a syntax error statement. If I change Month to another word it runs perfectly. I am trying to figure out why I can't use the word month. here is the code line that is giving me the syntax error. It does not seem to like the word Month.
mycon.Execute "INSERT INTO budgettable(Month, Expense, Amount) VALUES ('" & Form1.Text1.Text & "','" & Form1.Text2.Text & "','" & Form1.Text3.Text & "')"
if I change month to strmonth it works but I don't want my database field to be named strmonth I want to use the word month
Any suggestions
mycon.Execute "INSERT INTO budgettable(Month, Expense, Amount) VALUES ('" & Form1.Text1.Text & "','" & Form1.Text2.Text & "','" & Form1.Text3.Text & "')"
if I change month to strmonth it works but I don't want my database field to be named strmonth I want to use the word month
Any suggestions