Outputting A Query Count Into A Text Box

DAPOOLE

Registered User.
Local time
Today, 13:12
Joined
Jan 14, 2010
Messages
38
How can I output a count from a query into a text box?

strSQL = "Select count(*) From test "

Thanks in advance.
 
Lookup the word "recordset" in the access help and see if you can figure it out from there
 
Or maybe this will help:
me.myTextBox=DCount("*","[test]")

Actually you can put the following as the control source for the text box (unbound):
=DCount("*","[test]")

namliam's solution might might perform better in some circumstances though.

Chris
 

Users who are viewing this thread

Back
Top Bottom