I'm struggling with what should be a simple problem:
This works:
However when I add a numerical criteria:
Which in the full code looks like:
I get run time error 2465 can't find field '[1'
I really feel I'm missing something obvious, one way round is to run several seperate DLookups with single criteria but I feel that would be defeat.
Any suggestions
Many Thanks
This works:
PHP:
PreCompoundedLookupUnused = Nz(DLookup("[DoseRequired1]", "atblChemoPreCompoundOrder", "[Preparation]='" & Me![PreparationNotVisible] & "' And StockReceived = -1 And StockUsed = 0 And NextCycleDue < Date-8"), "")
PHP:
"[DoseRequired1] = " & Me![Dose] And
PHP:
PreCompoundedLookupUnused = Nz(DLookup("[DoseRequired1]", "atblChemoPreCompoundOrder", "[Preparation]='" & Me![PreparationNotVisible] & "'" And [DoseRequired1] = " & Me![Dose] And StockReceived = -1 And StockUsed = 0 And NextCycleDue < Date-8"), "")
I really feel I'm missing something obvious, one way round is to run several seperate DLookups with single criteria but I feel that would be defeat.
Any suggestions
Many Thanks