G
Guest
Hello,
I have a text box that is using a DLookup to get a value for the Control
Source property. It looks like this:
=DLookUp("[SumOfVolume]","[qryCapacity]","[DeliveryStartDate] =' " &
[Forms]![frmVirtualBoard]![subContainer]![lblOffPeakDateOne].[Caption] & " '
")
I am currently getting a "No Current Record" error when I run this. With
the immediate window open I have verified that lblOffPeakDateOne.Caption
contains a valid string (unfortunately the data I stream is stored in string
format instead of a date). For example, it displayed todays date of
2005-06-01 (vbShortDate format).
What I can't understand is that qryCapacity will return a single value when
I copy the WHERE statement into the query and run it from there and the
database shows that there is too.
Can anyone think of something that I may be able to try?
Thanks for your time.
Lance
I have a text box that is using a DLookup to get a value for the Control
Source property. It looks like this:
=DLookUp("[SumOfVolume]","[qryCapacity]","[DeliveryStartDate] =' " &
[Forms]![frmVirtualBoard]![subContainer]![lblOffPeakDateOne].[Caption] & " '
")
I am currently getting a "No Current Record" error when I run this. With
the immediate window open I have verified that lblOffPeakDateOne.Caption
contains a valid string (unfortunately the data I stream is stored in string
format instead of a date). For example, it displayed todays date of
2005-06-01 (vbShortDate format).
What I can't understand is that qryCapacity will return a single value when
I copy the WHERE statement into the query and run it from there and the
database shows that there is too.
Can anyone think of something that I may be able to try?
Thanks for your time.
Lance