D
Douglas
I have a form that can potentially open 1,500,000 records
if the user wants to. I do not want this and want a
message returned if their selection returns more than
500,000 records.
Currently I am doing something like this and is too slow:
vRecordCount = DCount("*","Table","Period = # AND Account
= # AND Company = #")
If vRecordCount > 500000 Then
MsgBox "Too many records. Make Criteria more specific."
Exit Sub
Endif
Is there a way to get a faster record count on a query of
record criteria of a table that can be used in conjunction
with opening the form.
Thanks for your help.
Douglas.
if the user wants to. I do not want this and want a
message returned if their selection returns more than
500,000 records.
Currently I am doing something like this and is too slow:
vRecordCount = DCount("*","Table","Period = # AND Account
= # AND Company = #")
If vRecordCount > 500000 Then
MsgBox "Too many records. Make Criteria more specific."
Exit Sub
Endif
Is there a way to get a faster record count on a query of
record criteria of a table that can be used in conjunction
with opening the form.
Thanks for your help.
Douglas.