Hi, my problem is that i have an Access database which makes use of the command buttons assocaited with docmd
eg. DoCmd.GoToRecord , , acNext.
I've come to realise that any changes made to the records displayed on my form will be automatically saved.
I have been asked to put in 2 search buttons so the user can search for a specific record, then after this point, can use the forward and backward command buttons to navigate throughout the rest of the recordset.
I did this using SQL statements to produce a recordset, and when the user hits the search buttons these are used rather than the docmd code..
The problem is when the user closes the form, it automatically wants to save the current record displayed, but since it is already in the database it produces a msgbox stating there cant be duplicate values etc
Could anyone suggest anyway round this?? or how can i make it not save when exiting??
I hope i've made this clear, but having thought about it for the past few days my brain is broke!
eg. DoCmd.GoToRecord , , acNext.
I've come to realise that any changes made to the records displayed on my form will be automatically saved.
I have been asked to put in 2 search buttons so the user can search for a specific record, then after this point, can use the forward and backward command buttons to navigate throughout the rest of the recordset.
I did this using SQL statements to produce a recordset, and when the user hits the search buttons these are used rather than the docmd code..
The problem is when the user closes the form, it automatically wants to save the current record displayed, but since it is already in the database it produces a msgbox stating there cant be duplicate values etc
Could anyone suggest anyway round this?? or how can i make it not save when exiting??
I hope i've made this clear, but having thought about it for the past few days my brain is broke!