I have a form with a search field which performs a lookup on a query to a MySQL DB.
The problem I am having is that each time I load the form (it has other functions as well), it is taking a long time to load as I am assuming it is running the query.
How do I only run the query when I have a need to and not every time the form loads?