My Assistant
![]() ![]() |
|
|
Dec 3 2007, 02:24 PM
Post
#1
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
Know that I have done this before - in the call code for a report - If the query for the report is empty - how do I make it not display the report and give empty set msgbox
thanks steve |
|
|
|
Dec 3 2007, 02:35 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 3,881 From: New Zealand |
Steve,
You mean something like this?... If DCount("*","MyQuery") > 0 Then DoCmd.OpenReport "MyReport" Else MsgBox "No matching data" End If |
|
|
|
Dec 3 2007, 03:01 PM
Post
#3
|
|
|
UtterAccess Guru Posts: 568 From: Cleveland, OH |
You can alos use the Report_NoData event of the report to cancel the opening of the report and issue your message.
|
|
|
|
Dec 3 2007, 03:14 PM
Post
#4
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
that was it - thanks
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 24th May 2013 - 01:25 AM |