F
Frank Situmorang
Hello,
I create a button to combine the member notes from several pastors.
There is a possibility of hit the button twice, What this the VBA in order
if it found abosolutly identical record, it will not be accpted in this
update query:
This is my updatequery:
Private Sub MemberNotesUpdate_Click()
On Error GoTo Err_MemberNotesUpdate_Click
DoCmd.SetWarnings False 'Turn messages back OFF
DoCmd.OpenQuery "Qry_UpdateCatatan", acNormal, acEdit
'Add your other query here
DoCmd.SetWarnings True 'Turn messages back ON
Exit_MemberNotesUpdate_Click:
Exit Sub
Err_MemberNotesUpdate_Click:
MsgBox Err.Description
Resume Exit_MemberNotesUpdate_Click
End Sub
Thanks in advance
I create a button to combine the member notes from several pastors.
There is a possibility of hit the button twice, What this the VBA in order
if it found abosolutly identical record, it will not be accpted in this
update query:
This is my updatequery:
Private Sub MemberNotesUpdate_Click()
On Error GoTo Err_MemberNotesUpdate_Click
DoCmd.SetWarnings False 'Turn messages back OFF
DoCmd.OpenQuery "Qry_UpdateCatatan", acNormal, acEdit
'Add your other query here
DoCmd.SetWarnings True 'Turn messages back ON
Exit_MemberNotesUpdate_Click:
Exit Sub
Err_MemberNotesUpdate_Click:
MsgBox Err.Description
Resume Exit_MemberNotesUpdate_Click
End Sub
Thanks in advance