Message when Records are Null

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can you please tell me how to display a message when a filter returns blank
data i.e. no records?

I'm guessing something like 'If (something) is Null then Msgbox "There are
no records to display'

Thanks
 
Bacornroll,

This is one way:

If Me.FilterOn AND If
IsNull(Dlookup("[Something_ID]","TblSomething",Me.filter)) Then
MgsBox ... etc
ElseIf IsNull(Dlookup("[Something_ID]","TblSomething")) Then
msgBox ... etc
EndIf

Reagrds/JK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top