Make sure and add the optional dbFailOnError or you will not get any failure
notification.
dbs.execute "insert.....", dbFailOnError
Probably need to paste the sql into the query grid to see your error...
Dim strSql As String
strSql = "insert....."
Debug.Print strSql
Stop
'now copy and paste the code from the immediate window into a new query
(View/Sql)
Steve
Quote:
> I have code that does a DoCMD.RunSQL( insert....) My
> problem is that the table records never get inserted in,
> but the auto ID field increments by the number of records
> I'm trying to insert. I've also tried
> dim dbs as database
> set dbs = currentdb
> dbs.execute ( insert.....)
> Any ideas?