G
ged
I have the following Tables and a search engine form to suite but its
slow as hell!!!
Table 1: (2.7million items)
FirstName
LastName
Address(Street)
Customer(Boolean)
PCID (REL)
Table2:
PCId (REL)
Postcode
SuburbName
State
Now the Form has a subform showing the full listing of Table1 and
whatever matching from Table2. The main form also has 6 text boxes
that are able to be used to narrow the search using Like Queries
linked to the text boxes value and a requery button to fire this off
My problem is 2fold at loading time that the load time for the Subform
is incredible about 3 minutes but then if the window losses focus then
the load time near doubles(Im not sure if that is due to system
resources but hell it takes ages if you open other windows whilst it
loads)
1. Can I get the Initial querey of the subform to only happen on the
search button press to kill the forms load time
2. Is there any way to exclude the like statements in the query if
nothing is added to the textbox if(Form.Textbox.value <> "",Like "*" &
Form.Textbox.value & "*", NO FRIGGIN CRITERIA) oh i have tried many
combos but hell non seem to work?? Should this be done in code and not
within a querey??? if so please help my SQL is like noahs pair of
hookers on the ark
3. When Loading a continuous form that is so long is there any way to
limit the amount of the form that is loaded so I could like say query
only get first 100k records Search for next 100k once person starts
scrolling???
4. Am I doing this the total wrong way about or if this does not make
sense then Slap me and ill re-explain
Any help would be appreciated !! I am currently putting up with the
load times but really want some decent performance from it !!!
slow as hell!!!
Table 1: (2.7million items)
FirstName
LastName
Address(Street)
Customer(Boolean)
PCID (REL)
Table2:
PCId (REL)
Postcode
SuburbName
State
Now the Form has a subform showing the full listing of Table1 and
whatever matching from Table2. The main form also has 6 text boxes
that are able to be used to narrow the search using Like Queries
linked to the text boxes value and a requery button to fire this off
My problem is 2fold at loading time that the load time for the Subform
is incredible about 3 minutes but then if the window losses focus then
the load time near doubles(Im not sure if that is due to system
resources but hell it takes ages if you open other windows whilst it
loads)
1. Can I get the Initial querey of the subform to only happen on the
search button press to kill the forms load time
2. Is there any way to exclude the like statements in the query if
nothing is added to the textbox if(Form.Textbox.value <> "",Like "*" &
Form.Textbox.value & "*", NO FRIGGIN CRITERIA) oh i have tried many
combos but hell non seem to work?? Should this be done in code and not
within a querey??? if so please help my SQL is like noahs pair of
hookers on the ark
3. When Loading a continuous form that is so long is there any way to
limit the amount of the form that is loaded so I could like say query
only get first 100k records Search for next 100k once person starts
scrolling???
4. Am I doing this the total wrong way about or if this does not make
sense then Slap me and ill re-explain
Any help would be appreciated !! I am currently putting up with the
load times but really want some decent performance from it !!!