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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Number of Rows returned in a Query

Status
Not open for further replies.

jmgibson

Technical User
Oct 1, 2002
81
US
Hi,

I suspect this is easy for many, but I can't figure out the necessary vba code to execute a requery and determine how many rows were returned in the query.

Here's the basic gist of what I'm doing. Do I need to declare anything to use the RecordCount feature?



Private Sub Form_Current()
If qryresults.RecordCount = 0 Then
Me.TabCtl4.Pages(3).Visible = False
Else
Me.TabCtl4.Pages(3).Visible = False
End If

End Sub
 
This is the same question as thread181-1542583. I don't know where else you have posted this but I didn't see it in the Queries forum where it should be.

Please post your question in the single, most appropriate forum.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top