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

Check if a query returns rows? 1

Status
Not open for further replies.

Keph

Technical User
Oct 15, 2002
16
0
0
CA
I'm trying to find a way to check if a given query returns any rows. I can't seem to find anything like this in these forms or in the MS Access help files. Can someone point me in the right direction?

Thanks!
 
me![how many rows query returned] = dcount("field in query that will alwas have something", "query name")

This is right off the top of my head, but check it out and look into the dcount command...

there are other faster way's out there, but this will get you going i think...


--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Dcount looks like it's exactly what I'm looking for, thanks!
 
Glad I could help...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top