I have an unbound text box that I want to use to display the one field result of a query. I've tried this code but wont work:
DoCmd.OpenQuery "qryGetMax"
Me.txtMax.Value = [qryGetMax]![MaxOfWgt]
The query give the correct result but I can't assign it to the text box. What am I doing wrong? Please!!!
DoCmd.OpenQuery "qryGetMax"
Me.txtMax.Value = [qryGetMax]![MaxOfWgt]
The query give the correct result but I can't assign it to the text box. What am I doing wrong? Please!!!