I have the following that appends data from one table to another:
(I didnt print the sql string as you know what it does)
If Not RstAppend.BOF And Not RstAppend.EOF Then
'if data in recordset do something
DoCmd.SetWarnings False
DoCmd.RunSQL StrQry
The sql string appends from one table to another. If the data from the temp table cannot be validated it does not append to the main table. Is there a way of knowing with the warnings off if the docmd was unsuccessful? Without looking in the two tables.
the warnings were off to avoid the user having to click ok to update the main table everytime.
regards
(I didnt print the sql string as you know what it does)
If Not RstAppend.BOF And Not RstAppend.EOF Then
'if data in recordset do something
DoCmd.SetWarnings False
DoCmd.RunSQL StrQry
The sql string appends from one table to another. If the data from the temp table cannot be validated it does not append to the main table. Is there a way of knowing with the warnings off if the docmd was unsuccessful? Without looking in the two tables.
the warnings were off to avoid the user having to click ok to update the main table everytime.
regards