G
Guest
I have put the following code in a button_click event on the form myform to
append mytable.
ID, FirstName, LastName, are the field names of the table AND the Form
textbox names, they are identical
======CODE========
dim sql as string
sql = "INSERT INTO [mytable] (ID, FirstName, LastName,)"
sql = sql + "values (Forms![myform]![ID], Forms![myform]![FirstName],
Forms![myform]!LastName)"
DoCmd.RunSQL sql
======CODE========
I get a parameter box popping up asking me to input a parameter for ID.
any help on what to do would be apreciated, I just want it to append without
a parameter box.
append mytable.
ID, FirstName, LastName, are the field names of the table AND the Form
textbox names, they are identical
======CODE========
dim sql as string
sql = "INSERT INTO [mytable] (ID, FirstName, LastName,)"
sql = sql + "values (Forms![myform]![ID], Forms![myform]![FirstName],
Forms![myform]!LastName)"
DoCmd.RunSQL sql
======CODE========
I get a parameter box popping up asking me to input a parameter for ID.
any help on what to do would be apreciated, I just want it to append without
a parameter box.