M
Mike
Hi All,
I reckon I've tried every combination of single quotes, double quotes and
brackets available, and not one is working. Here's the code:
Me.DOC = DLookup("CycleDay", "TblDayofCycle", "CycleDate =" & BUDate)
This is supposed to return a (long integer) number from the "CycleDay" field
after matching the "CycleDate" (a date field) to BUDate. BUdate has the
correct value in it, but me.DOC is continually showing null.
Is there something wrong with my syntax or is there more likely to be
something wrong on the form? I'm using Dlookup elsewhere in my code and it's
performing as it should...
Thanks in advance,
Mike
I reckon I've tried every combination of single quotes, double quotes and
brackets available, and not one is working. Here's the code:
Me.DOC = DLookup("CycleDay", "TblDayofCycle", "CycleDate =" & BUDate)
This is supposed to return a (long integer) number from the "CycleDay" field
after matching the "CycleDate" (a date field) to BUDate. BUdate has the
correct value in it, but me.DOC is continually showing null.
Is there something wrong with my syntax or is there more likely to be
something wrong on the form? I'm using Dlookup elsewhere in my code and it's
performing as it should...
Thanks in advance,
Mike