How to get a query result into a form

Keith

Registered User.
Local time
Today, 09:25
Joined
May 21, 2000
Messages
129
I have a query the SQL view is
SELECT Max([customerID]) AS Total
FROM tblCustomer
WHERE (((Left([CustomerID],3))=[forms]![frmNewCustomer].[txtFirst3]));
I run the query and the result is
Total
BIS007
How do I get Total into a text box on my form so that I can use it?
 
Keith said:
the result is
Total
BIS007

How do I get Total into a text box on my form so that I can use it?

Assuming that the total is a "field" in your query grid, create a textbox on your form and ensure that the source property is set to Total.

Hth
 

Users who are viewing this thread

Back
Top Bottom