Hi All,
I have an unbound form with the following items.
Combo Box
x2 Text Box for Date Input
Search Button
Cancel Button
When you select an item from the combo box and enter the start date and end date and click search it runs a query to show the records.
The problem I have is that when you go back into the form it still shows the last details you search for until you press cancel which closes the form.
Is there any way of getting it to clear the details either after the search has been run or when the form loads.
I have tried putting the following code behind the on load event
Me.Refresh but nothing happens.
Any help would be appreciated.
Spike



I have an unbound form with the following items.
Combo Box
x2 Text Box for Date Input
Search Button
Cancel Button
When you select an item from the combo box and enter the start date and end date and click search it runs a query to show the records.
The problem I have is that when you go back into the form it still shows the last details you search for until you press cancel which closes the form.
Is there any way of getting it to clear the details either after the search has been run or when the form loads.
I have tried putting the following code behind the on load event
Me.Refresh but nothing happens.
Any help would be appreciated.
Spike