B
Ben
Hi all,
I have the following code with a recordset tied to a form:
Set rsEditCient = New ADODB.Recordset
rsEditCient.CursorLocation = adUseClient
rsEditCient.Open strSQL, cnndb, adOpenStatic, adLockBatchOptimistic, adCmdText
DoCmd.OpenForm "frm_Edit_Client"
Set Forms("frm_Edit_Client").Recordset = rsEditCient
There are two buttons. One for update for when I make any update changes.
The other is a back button that would bring me to a previous form. However,
if I make any changes and click the back button or simply X out of the form,
it saves those changes too, which is not the intention, since I have an
update button for that purpose.
Can you tell me what I need to do to prevent the changes from being saved to
the recordset and subsequently back to the table, if I just click the back
button or X out of the form?
Thanks so much for your help,
Ben
--
I have the following code with a recordset tied to a form:
Set rsEditCient = New ADODB.Recordset
rsEditCient.CursorLocation = adUseClient
rsEditCient.Open strSQL, cnndb, adOpenStatic, adLockBatchOptimistic, adCmdText
DoCmd.OpenForm "frm_Edit_Client"
Set Forms("frm_Edit_Client").Recordset = rsEditCient
There are two buttons. One for update for when I make any update changes.
The other is a back button that would bring me to a previous form. However,
if I make any changes and click the back button or simply X out of the form,
it saves those changes too, which is not the intention, since I have an
update button for that purpose.
Can you tell me what I need to do to prevent the changes from being saved to
the recordset and subsequently back to the table, if I just click the back
button or X out of the form?
Thanks so much for your help,
Ben
--