G
Guest
Novice
I have a main form (GtTextForm) that clicks to a form/dialogue box
(UpdateForm). On UpdateForm, the button Publish has the following On Click
property Event procedure to exit the form and return to the main form
(GtTextForm).
It works fine except the Date doesn't appear in RecordPublished until I
manually Refresh the main form, but when I added
(Forms!GtTextForm.Form.Requery), the main form (GtTextForm) closes leaving
the dialoge box open.
Private Sub PublishButton_Click()
On Error GoTo Err_PublishButton_Click
Forms!GtTextForm!NextUpdateDue = Me!Combo2
Forms!GtTextForm!RecordPublished = Date
Forms!GtTextForm.Form.Requery (problem line??????????)
DoCmd.Close
Exit_PublishButton_Click:
Exit Sub
Err_PublishButton_Click:
MsgBox Err.Description
Resume Exit_PublishButton_Click
End Sub
Thank you
Peter
I have a main form (GtTextForm) that clicks to a form/dialogue box
(UpdateForm). On UpdateForm, the button Publish has the following On Click
property Event procedure to exit the form and return to the main form
(GtTextForm).
It works fine except the Date doesn't appear in RecordPublished until I
manually Refresh the main form, but when I added
(Forms!GtTextForm.Form.Requery), the main form (GtTextForm) closes leaving
the dialoge box open.
Private Sub PublishButton_Click()
On Error GoTo Err_PublishButton_Click
Forms!GtTextForm!NextUpdateDue = Me!Combo2
Forms!GtTextForm!RecordPublished = Date
Forms!GtTextForm.Form.Requery (problem line??????????)
DoCmd.Close
Exit_PublishButton_Click:
Exit Sub
Err_PublishButton_Click:
MsgBox Err.Description
Resume Exit_PublishButton_Click
End Sub
Thank you
Peter