Dlookup Help

ty939

New member
Local time
Yesterday, 17:16
Joined
Feb 14, 2019
Messages
9
Hi , thanks in advance to all

I have this dlookup that is suppose to get a date(NewValue) from a table(Audittrail) where FormName = frmactiondetails(this is a column in audittrail) and where actionID(which is on the form frmactiondetails) is a date.

=DLookUp("NewValue","[tblAuditTrail]","[FormName]='frmActionDetails' And ActionID=" & [Reports]![PATS_ACTIONID])

Any reason why I am getting an error?
 
Hi. Not sure I understood your description. Can you maybe post a screen image?
 
I would add that this:

[Reports]![PATS_ACTIONID]

probably needs to be:

[Reports]!ReportName.[PATS_ACTIONID]
 
Im thinking, I am going about this all wrong. I need to get a date from frmAudittrail where formname is frm actiondetails. I attached an image
 

Attachments

  • dlookup.PNG
    dlookup.PNG
    87 KB · Views: 191
Give us an example. Tell us what values are on your form and what value from that screenshot you expect returned.
 
Hi. In the image you posted, I don't see any "ActionID" column.
 
sorry for the late response.I was extremely busy yesterday.

As you can see on the two images, I need to create a where statement. RecordID = PatsActionID .So if those two are the same then I want the date on the column newValue
 

Attachments

  • dlookup2.PNG
    dlookup2.PNG
    44.6 KB · Views: 268
  • dlookup3.PNG
    dlookup3.PNG
    19.3 KB · Views: 181

Users who are viewing this thread

Back
Top Bottom