Hi all,
i am trying to set a dlookup on a query to a text box on a report
In the On Load event of the report, I have tried the following code :-
and
both of which return #Name?
Can anyone suggest what the issue may be. Count is a number.
Thanks!
i am trying to set a dlookup on a query to a text box on a report
In the On Load event of the report, I have tried the following code :-
Code:
Me.Text0.ControlSource = DLookup("Count", "qryReportQuotesByStatus", "Quote_Status = 'Accepted'")
and
Code:
Me.Text0.ControlSource = DLookup("[Count]", "[qryReportQuotesByStatus]", "[Quote_Status]='Accepted'")
both of which return #Name?
Can anyone suggest what the issue may be. Count is a number.
Thanks!