A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Blank Form - Empty Query



 
 
Thread Tools Display Modes
  #1  
Old December 14th, 2006, 12:38 PM posted to microsoft.public.access.forms
NNlogistics
external usenet poster
 
Posts: 29
Default Blank Form - Empty Query

I have a form that coming up blank when the query that drives the form is
empty. Is there anyway to get around this. One problem is that there are
other controls on the form the operator needs to follow.
If all else fails - if there was an event "on No data" like in a report
where I could redirect the operator down another path?
--
Thanks for any assistance
  #2  
Old December 14th, 2006, 01:21 PM posted to microsoft.public.access.forms
Al Campagna
external usenet poster
 
Posts: 421
Default Blank Form - Empty Query

NNlogistics,
There may be more elegant solutions but... this should work.
Assuming you're clicking a button to open the form, you could always interrogate the
query with a DCount before the form opens.
0 records... then open the form normally.

= 0 records... then post msg to user "No Data", and exit sub without opening the form.

--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"NNlogistics" wrote in message
...
I have a form that coming up blank when the query that drives the form is
empty. Is there anyway to get around this. One problem is that there are
other controls on the form the operator needs to follow.
If all else fails - if there was an event "on No data" like in a report
where I could redirect the operator down another path?
--
Thanks for any assistance



  #3  
Old December 14th, 2006, 01:24 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Blank Form - Empty Query

See:
Why does my form go completely blank?
at:
http://allenbrowne.com/casu-20.html
for the cause and workarounds.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"NNlogistics" wrote in message
...
I have a form that coming up blank when the query that drives the form is
empty. Is there anyway to get around this. One problem is that there are
other controls on the form the operator needs to follow.
If all else fails - if there was an event "on No data" like in a report
where I could redirect the operator down another path?
--
Thanks for any assistance



  #4  
Old December 14th, 2006, 02:08 PM posted to microsoft.public.access.forms
NNlogistics
external usenet poster
 
Posts: 29
Default Blank Form - Empty Query


--
Thanks for any assistance


"Allen Browne" wrote:

See:
Why does my form go completely blank?
at:
http://allenbrowne.com/casu-20.html
for the cause and workarounds.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"NNlogistics" wrote in message
...
I have a form that coming up blank when the query that drives the form is
empty. Is there anyway to get around this. One problem is that there are
other controls on the form the operator needs to follow.
If all else fails - if there was an event "on No data" like in a report
where I could redirect the operator down another path?
--
Thanks for any assistance


Thanks all


I used
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox (" There are no outstanding 'Manufacturer Returns' RETURN TO
SHIP/RECEIVE Menu")

End If
Thanks again - Have a happy holiday

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.