Skip to content
Advertisement

How to insert a value from DLookup into a table

Ive created a DLookup to search for the table ([Copy of tblTypeOfAsset]) record i have just added from combo boxes to find the ID. From here i want to insert this value into another table, just to test that its working. Beneath is the code ive tried to use.

this code inserts a sting ‘varx’ and not the ID value, without the commas i get a “runtime error: ‘3061’: Too few parameters. Expected 1.”

Advertisement

Answer

Concatenate the value and the SQL:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement