on NoData, show value in table

S

Song Su

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
 
M

Marshall Barton

Song said:
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"))
 
S

Song Su

Works great! Thanks.

Marshall Barton said:
Song said:
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"))
 

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

Similar Threads


Top