BradCollins
Technical User
I am hoping someone can show where I have gone wrong with the following dlookup statement that I have created.
it is to get a particular rate (curreny figure) based on a rate schedule ID that is on my form.
Each rates schedule can have multiple rates assigned to it, each rate being applicable for a certain date range.
I need to look up the applicable rate based on a chosen date so I have created the dlookup below
=DLookUp("fldRatesRate","tblRates","[txtRatesSchedule]=[fldRatesSchedID] and [fldBookIn] between #" & [fldRatesApplicableFrom] & "# and #" & [fldRatesApplicableTo] & "#")
Can anyone show me where I am going wrong please ?
Thanks
it is to get a particular rate (curreny figure) based on a rate schedule ID that is on my form.
Each rates schedule can have multiple rates assigned to it, each rate being applicable for a certain date range.
I need to look up the applicable rate based on a chosen date so I have created the dlookup below
=DLookUp("fldRatesRate","tblRates","[txtRatesSchedule]=[fldRatesSchedID] and [fldBookIn] between #" & [fldRatesApplicableFrom] & "# and #" & [fldRatesApplicableTo] & "#")
Can anyone show me where I am going wrong please ?
Thanks