No records returned by query
From: Kenneth H. Young (young_at_ncst.nrl.navy.mil)
Date: 03/02/04
- Next message: Allen Browne: "Re: Form_Load code not running"
- Previous message: Henry Smith: "Re: Building An Organization Tree From Records?"
- Next in thread: Cheryl Fischer: "Re: No records returned by query"
- Reply: Cheryl Fischer: "Re: No records returned by query"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 11:03:01 -0500
I have a form with a query for a data source that returns mismatched data.
SELECT Arpwatch.IP, Arpwatch.Name, Arpwatch.[Mac Address], Arpwatch.[Last
Seen]
FROM Arpwatch LEFT JOIN [DHCP List] ON Arpwatch.IP = [DHCP List].[Client IP
Address]
WHERE ((([DHCP List].[Client IP Address]) Is Null));
When no records are returned the form opens and displays a blank page. I
have tried applying an 'On Load' event that if 'IP' is null to display a
msgbox that there is no data to display and then close the form. I have also
tried If Not IsNull then ... Else msgbox and then close. Nether of these
work. How can I handle this if no records are returned by the query?
Thank you for any assistance
Ken
- Next message: Allen Browne: "Re: Form_Load code not running"
- Previous message: Henry Smith: "Re: Building An Organization Tree From Records?"
- Next in thread: Cheryl Fischer: "Re: No records returned by query"
- Reply: Cheryl Fischer: "Re: No records returned by query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|