Hi,
I'm new here and I have not been able to locate the answer for my puzzle:
I have a table (Table1) with fields: ID (key), First Name, Last Name, Timestamp, Period, Counter
I have a Select Query (look up) with Criteria using Text0 from Form (Action):
[Forms]![Action]![Text0]
My Form (Action) has an input field to locate the record. What I am trying to accomplish is the following:
Enter Record ID (key) and upon enter or tab:
Locate the Record
If [record's Timestamp field] is empty (null?) Then [do not print report]
Else [Print Report]**
** I print report using: DoCmd.OpenReport "Print Label", acViewNormal, "", "", acHidden
Print Label Report Property Sheet has Data-Record Source: Look up (Query)
In the report after user has input the ID, I cannot figure out how to run the conditional to check for Timestamp value and according to the value either popup a MsgBox ("error no date") or juts print the label
The worst part is that I did it about 4 years ago, but I cannot remember
I'm new here and I have not been able to locate the answer for my puzzle:
I have a table (Table1) with fields: ID (key), First Name, Last Name, Timestamp, Period, Counter
I have a Select Query (look up) with Criteria using Text0 from Form (Action):
[Forms]![Action]![Text0]
My Form (Action) has an input field to locate the record. What I am trying to accomplish is the following:
Enter Record ID (key) and upon enter or tab:
Locate the Record
If [record's Timestamp field] is empty (null?) Then [do not print report]
Else [Print Report]**
** I print report using: DoCmd.OpenReport "Print Label", acViewNormal, "", "", acHidden
Print Label Report Property Sheet has Data-Record Source: Look up (Query)
In the report after user has input the ID, I cannot figure out how to run the conditional to check for Timestamp value and according to the value either popup a MsgBox ("error no date") or juts print the label
The worst part is that I did it about 4 years ago, but I cannot remember
