D DAPOOLE Registered User. Local time Today, 03:10 Joined Jan 14, 2010 Messages 38 Jan 15, 2010 #1 How can I output a count from a query into a text box? strSQL = "Select count(*) From test " Thanks in advance.
How can I output a count from a query into a text box? strSQL = "Select count(*) From test " Thanks in advance.
N namliam The Mailman - AWF VIP Local time Today, 04:10 Joined Aug 11, 2003 Messages 11,685 Jan 15, 2010 #2 Lookup the word "recordset" in the access help and see if you can figure it out from there
stopher AWF VIP Local time Today, 03:10 Joined Feb 1, 2006 Messages 2,388 Jan 15, 2010 #3 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
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