Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

number of records on form 1

Status
Not open for further replies.

benu302000

Programmer
Aug 11, 2004
23
0
0
US
I have a form that displays results from a different "search" form. in this form, I would like to have a number for how many results were returned, any ideas?
 
How are ya benu302000 . . . . .
Code:
[blue] Public Sub recCnt()
   Dim rst as DAO.Recordset
   
   Set rst = Me.RecordsetClone
   rst.MoveLast
   Me![purple][b]TextBoxName[/b][/purple] = rst.RecordCount
   Set rst = nothing

End Sub[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top