K
kallen via AccessMonster.com
I am workin in Access 2007 and have the following code:
DoCmd.RunSQL "INSERT into [tbllocalformula] ( lot_no, oiltype, material_desc )
Values ([vardescript], [varoiltype], 'hello')", 0
I try to set the vardescript, etc to any value, and when I run the code on
the form, it still asks for the value. The only one that enters any data
into the table is the 'hello'.
What exactly am I doing wrong?
The vardescript and varoiltype are values that are taken from two text boxes
on the form.
Best Regards,
Kevin
DoCmd.RunSQL "INSERT into [tbllocalformula] ( lot_no, oiltype, material_desc )
Values ([vardescript], [varoiltype], 'hello')", 0
I try to set the vardescript, etc to any value, and when I run the code on
the form, it still asks for the value. The only one that enters any data
into the table is the 'hello'.
What exactly am I doing wrong?
The vardescript and varoiltype are values that are taken from two text boxes
on the form.
Best Regards,
Kevin