J
jmaustin
I have a table with about 8000 parts (Access 2003). On my "search" form, I
allow users to enter search criteria, then I open another form (based on a
query of the parts table) to display their search results. This part works
fine. However, if they specify a certain kind of search criteria, I have to
change the query I use to get their results, so when I open the results form,
they'll get the correct information. Here's my code:
docmd.openform "Parts for Users", acnormal, qryQueryByAsset
where "qryQueryByAsset" is a querydef I create on the fly based on the user's
critieria.
When the results form is displayed, the data is incorrect, but the user's
cursor will be an hourglass; after a second, the correct results are
displayed. However, my users find it very disconcerting to see that
incorrect part number (it's always the same one, I'm assuming it's the first
part in the table) which then changes to the correct part information.
Any ideas on how to prevent this? I don't really want to make another form
based on this different query (I have several other forms and reports based
on the results form, so I'd end up with extra copies of those, too). Is the
problem because I've got so many records?
Thanks in advance,
Jenifer A.
allow users to enter search criteria, then I open another form (based on a
query of the parts table) to display their search results. This part works
fine. However, if they specify a certain kind of search criteria, I have to
change the query I use to get their results, so when I open the results form,
they'll get the correct information. Here's my code:
docmd.openform "Parts for Users", acnormal, qryQueryByAsset
where "qryQueryByAsset" is a querydef I create on the fly based on the user's
critieria.
When the results form is displayed, the data is incorrect, but the user's
cursor will be an hourglass; after a second, the correct results are
displayed. However, my users find it very disconcerting to see that
incorrect part number (it's always the same one, I'm assuming it's the first
part in the table) which then changes to the correct part information.
Any ideas on how to prevent this? I don't really want to make another form
based on this different query (I have several other forms and reports based
on the results form, so I'd end up with extra copies of those, too). Is the
problem because I've got so many records?
Thanks in advance,
Jenifer A.