Expand|Select|Wrap|Line Numbers
- Private Sub Form_BeforeUpdate(Cancel As Integer)
- Dim CnfrmSave As Integer
- If (Me.Dirty = True) Then
- CnfrmSave = MsgBox("Record Changed." & vbCr & vbCr & "Proceed with Changes?", vbYesNo + vbExclamation, "Caution!")
- If CnfrmSave = vbNo Then
- Me.Undo
- Else
- MsgBox "Record changes will be saved", vbOKOnly + vbInformation, "Changes will be Saved"
- End If
- End If
- End Sub
“The expression BeforeUpdate you entered as the event property setting produced the following error: A problem while Your System was communicating with the OLE server or ActiveX Control.”
What does this error message mean and how to correct the problem?
Another thing I need help with this is that some forms contain SubForm. When I change data in SubForm and leave the MainForm record, the codes did not apply (nothing happened). How to make this design to cover the data changes in SubForm?
Thanks.