Hi All,
I know this is a common question, and I have desperately been searching the forum for answers.
I have used every possible format that I have found and cannot figure out what i'm missing.
Here is my lookup:
Me.Text68 = DLookup("ID", "Leave Database", "[StaffName]= '" & Me.Combo33 & "'" And "[StartDate]=#" & Format(Me.StartDate, "d/mm/yyyy") & "#")
I'm in Australia and have tried multiple date formats to make this work but I keep getting the data type mismatch error.
I tested the code without the date and it works fine, but I need the date to ensure that my users aren't submitting duplicate records.
Please help me.
Thank you,
Kim