hi,
yes, you assumed correctly about the text and number combo boxes. I've tried
your code, as below, however i get a compiler error on
CurrentDb.Execute strSQL, dbFailOnError
i dont have any ideas?!
You're missing a Reference or you don't already have one set to the
Microsoft Access DAO library.
The machine may have a missing reference.
Open any module in Design view.
On the Tools menu, click References.
1) Check your references that one for the Access DAO library is
checked.
If you don't see it, use the dropdown to find the highest version and
check it.
Also, if one is actually marked MISSING, click to clear the check box
for the type library or object library marked as "Missing:."
An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.
See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.
You can also not use CurrentDb.Execute.
Instead use:
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True