
Counting records returned by SQL Select statement
I guess you could use the DCount function.
SomeVariable = DCOUNT("*","MyTbl","MyDesc Like '" & strMyTextbox & "*'")
Quote:
> Hi,
> How do I go about counting the number of records to be
> returned by my code:
> strSQl= "SELECT * FROM myTbl WHERE myDesc LIKE '" &
> strmyTextbox & "' & '*'"
> before either using
> me.RecordSource = strSQL
> or before requerying the form based on the results of the
> above line?
> TonyT