F
Frank Situmorang
Hello,
Here I have 2 buttons to run 2 append queries. My question is, I will still
have another one. How can we make it only 1 button to run 3 append queries:
This is my 2 append queries:
1.
Private Sub UpdateMemberData_Click()
On Error GoTo Err_UpdateMemberData_Click
Dim stDocName As String
stDocName = "Qry_UpdateMembershipdata"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_UpdateMemberData_Click:
Exit Sub
Err_UpdateMemberData_Click:
MsgBox Err.Description
Resume Exit_UpdateMemberData_Click
End Sub
2.
Private Sub MemberAddressUpdate_Click()
On Error GoTo Err_MemberAddressUpdate_Click
Dim stDocName As String
stDocName = "Qry_updateMemberAddressData"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_MemberAddressUpdate_Click:
Exit Sub
Err_MemberAddressUpdate_Click:
MsgBox Err.Description
Resume Exit_MemberAddressUpdate_Click
End Sub
Thanks in Advance,
Frank
Here I have 2 buttons to run 2 append queries. My question is, I will still
have another one. How can we make it only 1 button to run 3 append queries:
This is my 2 append queries:
1.
Private Sub UpdateMemberData_Click()
On Error GoTo Err_UpdateMemberData_Click
Dim stDocName As String
stDocName = "Qry_UpdateMembershipdata"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_UpdateMemberData_Click:
Exit Sub
Err_UpdateMemberData_Click:
MsgBox Err.Description
Resume Exit_UpdateMemberData_Click
End Sub
2.
Private Sub MemberAddressUpdate_Click()
On Error GoTo Err_MemberAddressUpdate_Click
Dim stDocName As String
stDocName = "Qry_updateMemberAddressData"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_MemberAddressUpdate_Click:
Exit Sub
Err_MemberAddressUpdate_Click:
MsgBox Err.Description
Resume Exit_MemberAddressUpdate_Click
End Sub
Thanks in Advance,
Frank