R
Rose B
Hi,
I am trying to look up some values in a table based upon values in a form. I
know what is happening, and to some extent why.......but cannot work out how
to get over it! The lookup involves taking a date field, which being in the
UK is dd/mm/yyyy, and then using it to pick up values by comparing to a date
range in another table. The DLOOKUP works......excpet that it is using
mm/dd/yyyy. I have tried all kinds of ways of trying to format correctly but
have not hit the jackpot! Can anyone help? My code currently looks like...
varMinCharge = DLookup("MinClientCharge", "MileageRate", "DateFrom <= #" &
Me.ActivityDate & "# AND DateTo >= #" & Me.ActivityDate & "# AND VolService =
""" & Me.Activity & """")
Thanks,
I am trying to look up some values in a table based upon values in a form. I
know what is happening, and to some extent why.......but cannot work out how
to get over it! The lookup involves taking a date field, which being in the
UK is dd/mm/yyyy, and then using it to pick up values by comparing to a date
range in another table. The DLOOKUP works......excpet that it is using
mm/dd/yyyy. I have tried all kinds of ways of trying to format correctly but
have not hit the jackpot! Can anyone help? My code currently looks like...
varMinCharge = DLookup("MinClientCharge", "MileageRate", "DateFrom <= #" &
Me.ActivityDate & "# AND DateTo >= #" & Me.ActivityDate & "# AND VolService =
""" & Me.Activity & """")
Thanks,