S
sandpking
From the main menu, I have a Max query that displays the most recent
date of a particular field. When I go into a form off of the main
menu and update that field, I'd like the main menu to be updated. The
code below does not work. Any help is appreciated.
Private Sub Command15_Click()
Dim frm As Form
On Error GoTo Err_CloseImportForm_Click
If CurrentProject.AllForms("Frm_Main_Menu").IsLoaded Then
Set frm = Forms![Frm_Main_Menu]
frm.Requery
frm.Refresh
Set frm = Nothing
End If
If Me.Dirty Then Me.Dirty = False
DoCmd.Close
Exit_CloseImportForm_Click:
Exit Sub
Err_CloseImportForm_Click:
MsgBox Err.Description
Resume Exit_CloseImportForm_Click
End Sub
date of a particular field. When I go into a form off of the main
menu and update that field, I'd like the main menu to be updated. The
code below does not work. Any help is appreciated.
Private Sub Command15_Click()
Dim frm As Form
On Error GoTo Err_CloseImportForm_Click
If CurrentProject.AllForms("Frm_Main_Menu").IsLoaded Then
Set frm = Forms![Frm_Main_Menu]
frm.Requery
frm.Refresh
Set frm = Nothing
End If
If Me.Dirty Then Me.Dirty = False
DoCmd.Close
Exit_CloseImportForm_Click:
Exit Sub
Err_CloseImportForm_Click:
MsgBox Err.Description
Resume Exit_CloseImportForm_Click
End Sub