Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLookUP syntax question 1

Status
Not open for further replies.

LD1010

Technical User
Dec 6, 2001
78
US
Thanks for reading my post.

I'm working on a Payroll Db. I need to capture on an entry form "frmLaborHrs" the "PayPerID" from "tblPayPeriods" where the "frmLaborHrs.LaborDate" (Date/Time field) is between "tblPayPeriods.PayPerStart" (Date/Time field) and "tblPayPeriods.PayPerEnd" (Date/Time field) .

Is this possible to do and if so what's the proper syntax? Any help would be much appreciated.
 
dlookup("PayPerID" , "tblPayPeriods" ,"#" & forms!frmLaborHrs!LaborDate & "# Between PayPerStart and PayPerEnd")
 
Thanks PWise! Worked great. Appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top