E
Esmerelda
Hi,
I’m using vba to run an append query, but where 0 rows are appended, I need
to pop up a message box to inform the user. Is there a way of counting the
number of records so I can write an if statement:
If ‘no of records’=0 then msg etc
Else
Do cmd runSQL
Or am I approaching this the wrong way?
Also another quickie, I keep seeing this in code in this forum: dbFailOnError.
I know it kicks in when there’s an error, but what exactly does it do? Does
it just stop the macro immediately when the error occurs?
Thanks
I’m using vba to run an append query, but where 0 rows are appended, I need
to pop up a message box to inform the user. Is there a way of counting the
number of records so I can write an if statement:
If ‘no of records’=0 then msg etc
Else
Do cmd runSQL
Or am I approaching this the wrong way?
Also another quickie, I keep seeing this in code in this forum: dbFailOnError.
I know it kicks in when there’s an error, but what exactly does it do? Does
it just stop the macro immediately when the error occurs?
Thanks