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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

on NoData, show value in table



 
 
Thread Tools Display Modes
  #1  
Old August 4th, 2007, 06:51 PM posted to microsoft.public.access.reports
Song Su
external usenet poster
 
Posts: 165
Default on NoData, show value in table

My report recordsourse is based on qrystudent where i have 2 tables.
'duration' table has 2 fields [from] and [to].

on NoData event of the report, I want to give message like 'You have not
logged in during ' [from] and [to]

If NoData, how can I give message include fields value in 'duration' table?
'duration' table has only one record.

Thanks


  #2  
Old August 4th, 2007, 07:32 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default on NoData, show value in table

Song Su wrote:

My report recordsourse is based on qrystudent where i have 2 tables.
'duration' table has 2 fields [from] and [to].

on NoData event of the report, I want to give message like 'You have not
logged in during ' [from] and [to]

If NoData, how can I give message include fields value in 'duration' table?
'duration' table has only one record.



Use a text box with an expression like:

=IIf(Report.HasData, Null, "'You have not
logged in during " & DLookup("[from]","Duration") & " and "
& DLookup("[to]", "Duration"))

--
Marsh
MVP [MS Access]
  #3  
Old August 4th, 2007, 08:48 PM posted to microsoft.public.access.reports
Song Su
external usenet poster
 
Posts: 165
Default on NoData, show value in table

Works great! Thanks.

"Marshall Barton" wrote in message
...
Song Su wrote:

My report recordsourse is based on qrystudent where i have 2 tables.
'duration' table has 2 fields [from] and [to].

on NoData event of the report, I want to give message like 'You have not
logged in during ' [from] and [to]

If NoData, how can I give message include fields value in 'duration'
table?
'duration' table has only one record.



Use a text box with an expression like:

=IIf(Report.HasData, Null, "'You have not
logged in during " & DLookup("[from]","Duration") & " and "
& DLookup("[to]", "Duration"))

--
Marsh
MVP [MS Access]



 




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 06:43 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.