Hi
I am trying to use DLookup to identify current record details and I am using
I keep getting a "You have cancelled previous operation" error. I have narrowed it down to this line.
Initially I didn't have the '" and "'" around the last parameter but checking through other issues like this some seemed to have it.
When I debug and hover over the line both cboWeekNo and cboStaff are showing the correct numeric values.
Any help would be most appreciated.
Thanks
I am trying to use DLookup to identify current record details and I am using
Code:
varRegister = DLookup("[lngTsin]", "dbo_tsin", "[strEmp] = " & Me.cboStaff & " And [lngWeek] = '" & Me.cboWeekNo & "'")
Initially I didn't have the '" and "'" around the last parameter but checking through other issues like this some seemed to have it.
When I debug and hover over the line both cboWeekNo and cboStaff are showing the correct numeric values.
Any help would be most appreciated.
Thanks