txgeekgirl
Registered User.
- Local time
- Today, 05:43
- Joined
- Jul 31, 2008
- Messages
- 187
I am trying to get this DLookUp to give me a date.
In the Audit Table, there is an Auto ID Field AuditID and of course the date fields for the beginning and ending Audit date ranges.
CheckAuditSDate is a Global Variable needs to be populated with the start date from the Audit tbl.
Me.AuditMeTB is a TB control on the Update Results Form.
I have tried with double and single quotes and without. I do get a vlue on mouse over of 38 (which is correct) for Me.AuditMeTB.
CheckAuditSDate = DLookup("[AuditRangeBDate]", "[Audit]", "[Audit]![AuditID]= '" & Me.AuditMeTB & "'")
MsgBox CheckAuditSDate
In the Audit Table, there is an Auto ID Field AuditID and of course the date fields for the beginning and ending Audit date ranges.
CheckAuditSDate is a Global Variable needs to be populated with the start date from the Audit tbl.
Me.AuditMeTB is a TB control on the Update Results Form.
I have tried with double and single quotes and without. I do get a vlue on mouse over of 38 (which is correct) for Me.AuditMeTB.
CheckAuditSDate = DLookup("[AuditRangeBDate]", "[Audit]", "[Audit]![AuditID]= '" & Me.AuditMeTB & "'")
MsgBox CheckAuditSDate