I am sure this is an easy fix but it has got me stuffed.
I am trying to get my command button to requery a field on my form( OPEN FORM) I need the underlying Query updated before going to the next form. The button is currently running a macro to go to next form with certain parameters. But the requery is what is badly needed.
This is what I currently have
Private Sub Command122_Click()
On Error GoTo Err_Command122_Click
Dim stDocName As String
stDocName = "m1 next"
DoCmd.RunMacro stDocName
Exit_Command122_Click:
Exit Sub
Err_Command122_Click:
MsgBox Err.Description
Resume Exit_Command122_Click
End Sub
Can anyone help please ?
I am trying to get my command button to requery a field on my form( OPEN FORM) I need the underlying Query updated before going to the next form. The button is currently running a macro to go to next form with certain parameters. But the requery is what is badly needed.
This is what I currently have
Private Sub Command122_Click()
On Error GoTo Err_Command122_Click
Dim stDocName As String
stDocName = "m1 next"
DoCmd.RunMacro stDocName
Exit_Command122_Click:
Exit Sub
Err_Command122_Click:
MsgBox Err.Description
Resume Exit_Command122_Click
End Sub
Can anyone help please ?