G
Guest
Hi,
I have a Update query that is openned via a form name Updateform
I really want to have a message box tell the user that how many records have been updated. How can I do this? the following is the code that John help me with.
Private Sub cmdUpdate_Click()
Dim qd As Querydef
Dim db As DAO.Database
Dim prm As Parameter
Set db = CurrentDb
Set qd = db.Querydefs("RupdateFacultyAndLocation")
For Each prm In qd.Parameters
prm.Value = Eval(prm.Name)
Next prm
qd.Execute dbFailOnError
End Sub
Regards,
I have a Update query that is openned via a form name Updateform
I really want to have a message box tell the user that how many records have been updated. How can I do this? the following is the code that John help me with.
Private Sub cmdUpdate_Click()
Dim qd As Querydef
Dim db As DAO.Database
Dim prm As Parameter
Set db = CurrentDb
Set qd = db.Querydefs("RupdateFacultyAndLocation")
For Each prm In qd.Parameters
prm.Value = Eval(prm.Name)
Next prm
qd.Execute dbFailOnError
End Sub
Regards,