G
Gus Chuch
I have a form that run’s some SQL’s using the DoCmd.RunSQL And then I need
to refresh my data but the only way it seems to work is with a Command button
routine
Private Sub cmdRefresh_Click()
On Error GoTo Err_cmdRefresh_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Exit_cmdRefresh_Click:
Exit Sub
Why won’t it work with just the following code after the DoCmd.RunSQL
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
It's the same thing as the Command button with out the goto err, Right?
to refresh my data but the only way it seems to work is with a Command button
routine
Private Sub cmdRefresh_Click()
On Error GoTo Err_cmdRefresh_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Exit_cmdRefresh_Click:
Exit Sub
Why won’t it work with just the following code after the DoCmd.RunSQL
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
It's the same thing as the Command button with out the goto err, Right?