Hi,
new to VBA!
I am trying to get the syntax right for opening a query and checking for null records. If the result is nill I then want to run another query.
I keep getting errors. here is the code:
DoCmd.OpenQuery "Check_Date"
If IsEmpty("Check_Date") Then
DoCmd.OpenQuery "Append_EC_Totals(Trend)"
DoCmd.Close
else End
Any ideas appreciated.
new to VBA!
I am trying to get the syntax right for opening a query and checking for null records. If the result is nill I then want to run another query.
I keep getting errors. here is the code:
DoCmd.OpenQuery "Check_Date"
If IsEmpty("Check_Date") Then
DoCmd.OpenQuery "Append_EC_Totals(Trend)"
DoCmd.Close
else End
Any ideas appreciated.