R
ridders
Hi
I have a procedure that runs a long list of append queries in turn.
As it occasionally fails due to e.g. a key violation, I would like to add
debug lines after each query to show that these ran successfully (or not)
This will help me finally sort out what the cause of the occasional failures
is...
For example, part of the code is:
'Transfer all student leaver Archived Student Attendance - after 30 days -
30/07/2008
DoCmd.OpenQuery "qryAppendLeaversArchivedStudentAttendance",
acViewNormal, acEdit
Debug.Print "qryAppendLeaversArchivedStudentAttendance" & " DONE"
'Transfer all student leaver Class Records for current year - after 30
days - 30/07/2008
DoCmd.OpenQuery "qryAppendLeaversClassRecords", acViewNormal, acEdit
Debug.Print "qryAppendLeaversClassRecords" & " DONE"
Rather than copy & paste the specific query name int each part of the code,
is there an easier way of doing this?
I have a procedure that runs a long list of append queries in turn.
As it occasionally fails due to e.g. a key violation, I would like to add
debug lines after each query to show that these ran successfully (or not)
This will help me finally sort out what the cause of the occasional failures
is...
For example, part of the code is:
'Transfer all student leaver Archived Student Attendance - after 30 days -
30/07/2008
DoCmd.OpenQuery "qryAppendLeaversArchivedStudentAttendance",
acViewNormal, acEdit
Debug.Print "qryAppendLeaversArchivedStudentAttendance" & " DONE"
'Transfer all student leaver Class Records for current year - after 30
days - 30/07/2008
DoCmd.OpenQuery "qryAppendLeaversClassRecords", acViewNormal, acEdit
Debug.Print "qryAppendLeaversClassRecords" & " DONE"
Rather than copy & paste the specific query name int each part of the code,
is there an easier way of doing this?