search form not to load all data up to start with

  • Follow


I have a form based on a query that i use to search for product in my
database, on the form i have text box to type in, then a button to
requery

the query has the following     Like "*" & [forms]![frmProductList]!
[txtProductSearch] & "*"

This query works fine but when i load up the form is shows all the
products we stock which is a lot and seems to take a lot longer to
load now, Is there a way for the form not to load up any data until o
press the search button

0
Reply Simon 2/20/2010 8:18:40 PM

Try putting a default in [forms]![frmProductList]![txtProductSearch] that 
would not produce any results.   Something like 'ZZZZZZZZZZZZZZZ'.
-- 
Build a little, test a little.


"Simon" wrote:

> I have a form based on a query that i use to search for product in my
> database, on the form i have text box to type in, then a button to
> requery
> 
> the query has the following     Like "*" & [forms]![frmProductList]!
> [txtProductSearch] & "*"
> 
> This query works fine but when i load up the form is shows all the
> products we stock which is a lot and seems to take a lot longer to
> load now, Is there a way for the form not to load up any data until o
> press the search button
> 
> .
> 
0
Reply Utf 2/22/2010 3:47:02 PM


1 Replies
289 Views

(page loaded in 0.039 seconds)


Reply: