G
Guest
How do I you code to give some meaningful error message based on a queries result. I have 2 situations to that I would like help on
I have a series of select queries that essentially are checking data intergrity in my database. (n.b. Not referential Integrity)
Essentially, if the query result is NULL then integrity is intact. However if not then the records with discrepancies are returned
rather that open all these queries and view myself, is there a way to do this from code that basically tells me which queries are in error
e.g
if qry_integrity is not null then
msgbox("There are integrity issues".
En
Else
msgbox("Ok"
The second I would like to do I add some code to a macro that runs an into into (Append) query). I have turned off set warnings
Basically is the append is successful it should tell the use "Record added successfully". If not "The record could not be added"
Any help appreciate
Bruc
I have a series of select queries that essentially are checking data intergrity in my database. (n.b. Not referential Integrity)
Essentially, if the query result is NULL then integrity is intact. However if not then the records with discrepancies are returned
rather that open all these queries and view myself, is there a way to do this from code that basically tells me which queries are in error
e.g
if qry_integrity is not null then
msgbox("There are integrity issues".
En
Else
msgbox("Ok"
The second I would like to do I add some code to a macro that runs an into into (Append) query). I have turned off set warnings
Basically is the append is successful it should tell the use "Record added successfully". If not "The record could not be added"
Any help appreciate
Bruc