C
ChicagoPete
So I have a VERY simple Access 2007 db to store location of products. I have
a ProdID, ProdName, ProdLocation.
Yes, I used a switchboard wizard that has a few buttons - "Enter new
product", another button to "Search". When I click on the "Search" button it
opens frmSearch - the user fills in the ProdName or ProdID, clicks on a
Search button which opens a split form called frmSearchResults (it's data
source is qrySearch).
On frmSearchResults I have a button that goes back to the "Switchboard" and
another button to "Return to Search".
If you click on "Return to Search" - frmSearch opens but still displays the
values from the last search.
It seems to me that the original frmSearch form is still open in the
background when frmSearchResults opens, so how do I clear ALL fields before
frmSearch opens? Is there an OnLoad or OnOpen event I can use here? Or
OnClose of frmSearch?
For the purpose of this simple db, we decided to use wizards and no code so
as this db moves from dept to dept it should be easy to understand/debug -
nothing fancy here!
a ProdID, ProdName, ProdLocation.
Yes, I used a switchboard wizard that has a few buttons - "Enter new
product", another button to "Search". When I click on the "Search" button it
opens frmSearch - the user fills in the ProdName or ProdID, clicks on a
Search button which opens a split form called frmSearchResults (it's data
source is qrySearch).
On frmSearchResults I have a button that goes back to the "Switchboard" and
another button to "Return to Search".
If you click on "Return to Search" - frmSearch opens but still displays the
values from the last search.
It seems to me that the original frmSearch form is still open in the
background when frmSearchResults opens, so how do I clear ALL fields before
frmSearch opens? Is there an OnLoad or OnOpen event I can use here? Or
OnClose of frmSearch?
For the purpose of this simple db, we decided to use wizards and no code so
as this db moves from dept to dept it should be easy to understand/debug -
nothing fancy here!