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

Blank Query Boolean

Status
Not open for further replies.
Joined
Nov 16, 2006
Messages
19
Location
GB
I have a query lets call him Bob_The_Query.

And i have a boolean who we will call Ted_The_Bool

I need VBA code which will return Ted_The_Bool as True if there are no records returned whan i run Bob_The_Query.

All help is muchly appreciated.
 
Code:
Ted_The_Bool=(DCount("*","Bob_The_Query) =0)

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top