R
Richard Keeves
I'm trying to perform a check to see if data exists in a
report. When I execute the code to open the report, it
works fine, however, when I add in the If statement
checking for NoData, I get the error: "Run-time
error '2451'. The report name 'Monthly Branch Report' you
entered is misspelled or refers to a report that isn't
open or does not exist."
here's the code snippet:
DoCmd.OpenReport "Monthly Branch Report",
acViewNormal, , "[brancd]=" & rst!Branch
If Reports![Monthly Branch Report].NoData = False Then
FileCopy strSourceFile, strDestFile
End If
Any suggestions? Thanks.
report. When I execute the code to open the report, it
works fine, however, when I add in the If statement
checking for NoData, I get the error: "Run-time
error '2451'. The report name 'Monthly Branch Report' you
entered is misspelled or refers to a report that isn't
open or does not exist."
here's the code snippet:
DoCmd.OpenReport "Monthly Branch Report",
acViewNormal, , "[brancd]=" & rst!Branch
If Reports![Monthly Branch Report].NoData = False Then
FileCopy strSourceFile, strDestFile
End If
Any suggestions? Thanks.