K
kaosyeti via AccessMonster.com
this is the code that's giving me a syntax error:
strSql = "insert into tblnewoptions (Option, OptionCode, AllocGroup) values
('" & Me.txtboxOption & "'" & ", '" & Me.txtboxOptionCode & "'" & ", '" & Me.
txtboxAllocGroup & "');"
Debug.Print strSql
CurrentDb.Execute strSql
and here is the debug.print line:
insert into tblnewoptions (Option, OptionCode, AllocGroup) values('test desc',
'test code', 'test alloc');
the three test values are being pulled from text boxes on a form. this code
is in a button on that form.
hope this is an easy one. any ideas? thanks.
greg
strSql = "insert into tblnewoptions (Option, OptionCode, AllocGroup) values
('" & Me.txtboxOption & "'" & ", '" & Me.txtboxOptionCode & "'" & ", '" & Me.
txtboxAllocGroup & "');"
Debug.Print strSql
CurrentDb.Execute strSql
and here is the debug.print line:
insert into tblnewoptions (Option, OptionCode, AllocGroup) values('test desc',
'test code', 'test alloc');
the three test values are being pulled from text boxes on a form. this code
is in a button on that form.
hope this is an easy one. any ideas? thanks.
greg