it's not the case. I will try to show you the whole form:
Select emp: [combobox]
NAME: [textbox, ControlSource NAME_EMP]
CITY: [textbox, ControlSource: CITI_EMP]
SALARY: [textbox, ControlSource SALARY_EMP]
[buttonEdit]
[buttonAccept]
[buttonUndo]
[buttonCancel]
When I change something in NAME and then switch do CITI the record still updates. I want it to update only after I call buttonAccept_Click() method.
And now I have other problem. I made button called Undo. Here's the code:
Private Sub btnUndo_Click()
Dim ctlC As Control
For Each ctlC In Me.Controls
If ctlC.ControlType = acTextBox Then
ctlC.Value = ctlC.OldValue
End If
Next ctlC
End Sub
The problem is that it works fine for CITY textbox, but return error for NAME and SALARY. Error:
"Operation is not supported for this type of object"
Hi
If the NAME textbox is the last control in the Tab Order, then when youn tab out of it it moves to the next record if the Cycle property is set to 'All Records' (which is the default). Is that the case?
If so, then change the property (Form -> Properties -> Other tab) to 'Current Record'
??
MTB