Hello:
Well here we go, and I'm sure I am missing the obvious. Why won't this work?
Code:
=DLookUp("[approved]","[tblocalApprovalLog]", “[dayDate] =‘” & [Forms]![frmTimeCard].[txtDate] & “’ And "[weekDate] =‘" & [Forms]![frmTimeCard].[txtPeriodStart] & " - " & [Forms]![frmTimeCard].[txtPeriodEnd] & "’ And [empid]='" & [txtEmployeeNo] & "'")
In contract, this does, and I've just added one more field to the mix. The error is invalid syntax, operand without an operator...
Code:
=DLookUp("[approved]","[tblocalApprovalLog]","[weekDate] between #" & [Forms]![frmTimeCard].[txtPeriodStart] & "# And #" & [Forms]![frmTimeCard].[txtPeriodEnd] & "# And [empid]='" & [txtEmployeeNo] & "'")