Hi,
I have part of my code that looks like this:
oldstkdate = DMin("date", "qrygdsout")
oldstkarea = DLookup("[areaID]", "qrygdsout", "[date] = #" & qrygdsout & "#")
Where qrygdsout is a query with two citeria based on the values text boxes in the current form. Now, when I run the code it finds the value of oldstkdate fine, but the Dlookupfunction keeps retuning a null value. Is this a syntax problem or somthing deeper.
Any advice is appreciated as I have a deadline looming. Thanks,
Paul.
I have part of my code that looks like this:
oldstkdate = DMin("date", "qrygdsout")
oldstkarea = DLookup("[areaID]", "qrygdsout", "[date] = #" & qrygdsout & "#")
Where qrygdsout is a query with two citeria based on the values text boxes in the current form. Now, when I run the code it finds the value of oldstkdate fine, but the Dlookupfunction keeps retuning a null value. Is this a syntax problem or somthing deeper.
Any advice is appreciated as I have a deadline looming. Thanks,
Paul.