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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|