Pauldohert
Something in here
- Local time
- Today, 05:29
- Joined
- Apr 6, 2004
- Messages
- 2,101
I am opening a unbound form and populating a list box with a query.
If the query returns no records - I don't want the form to open.
My question is - which is the quickest way to count the records
If i use a dCount on my query does this take the same amount of time as re-running the query ( the query looks at a table with 10s of thousands of records and does a like search in a text field of 25 charcters) - so i really don't want to run it twice.
Or would counting the items in the listbox be better - Me.ListOrgs.ListCount
Or some other way
Thanks for the help. Paul
If the query returns no records - I don't want the form to open.
My question is - which is the quickest way to count the records
If i use a dCount on my query does this take the same amount of time as re-running the query ( the query looks at a table with 10s of thousands of records and does a like search in a text field of 25 charcters) - so i really don't want to run it twice.
Or would counting the items in the listbox be better - Me.ListOrgs.ListCount
Or some other way
Thanks for the help. Paul