R
ridawg
Hey,
I've created a form connected to an Access database using the connection
wizard. Within this form I've created 3 views: Search, Details, New Record.
The Search view has a button that switches views to the New Record view,
query fields & query button, and a repeating table for the results & within
the results I have a button that I use to switch views to the Details view.
Here's the problem:
When I enter a new record in the New Record view the database is updated no
problem but I then select a button I created called Return to Search - this
button switches the view back to my Search view - this is where the problem
occurs.
The Search view lists my new record - I would like the Search view to be set
back to nothing like when you first open the form. The reason being the next
time I select the New Record button it displays my new record instead of
switching to this view with all the fields blank (essentially ready for
entry).
So I think I need to write some code that when my Return to Search button is
clicked it not only switches to the Serach view but it also clears the
previous results.
Any help is greatly appreciated!
I've created a form connected to an Access database using the connection
wizard. Within this form I've created 3 views: Search, Details, New Record.
The Search view has a button that switches views to the New Record view,
query fields & query button, and a repeating table for the results & within
the results I have a button that I use to switch views to the Details view.
Here's the problem:
When I enter a new record in the New Record view the database is updated no
problem but I then select a button I created called Return to Search - this
button switches the view back to my Search view - this is where the problem
occurs.
The Search view lists my new record - I would like the Search view to be set
back to nothing like when you first open the form. The reason being the next
time I select the New Record button it displays my new record instead of
switching to this view with all the fields blank (essentially ready for
entry).
So I think I need to write some code that when my Return to Search button is
clicked it not only switches to the Serach view but it also clears the
previous results.
Any help is greatly appreciated!