Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copying a record to another table

Status
Not open for further replies.

ghayman73

Technical User
Jul 3, 2002
55
0
0
FR
hi i am trying to copy current record "which has only one field" to another table.

I am trying this but keep getting an error

Dim strSQL As String
strSQL = "INSERT INTO [ignore_list] ([keyword]) VALUES (Me!keyword);"
CurrentDb.Execute strSQL


error:

Run Time Error '3061':

too few parameters. Expected 1


any ideas or am I missing something

thanks Grant
 
Its running now thanks spiralmind.

BUT!! its asking for (Me!keyword) is that the correct syntax for current form.

thanks again.

Grant
 
do you have a control named "keyword", if so you might want to try putting a ".value" at the end of the SQL parameter, or naming the form explicitly to clear up any confusion access must be experiencing when it asks you who "me" is and what its "keyword" is equal to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top