L
larry.nolan
(e-mail address removed)
Dec 4, 3:05 pm show options
Newsgroups: microsoft.public.access
From: (e-mail address removed) - Find messages by this author
Date: 4 Dec 2005 13:05:17 -0800
Local: Sun, Dec 4 2005 3:05 pm
Subject: OnCurrent not triggered by return from another form
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse
I'm debugging a Access97 d.b. that has been converted to Access 2002.
Private Sub GoToHours_Click()
DoCmd.Minimize
DoCmd.OpenForm "Vol Hours"
End Sub
When I return from "Vol Hours", I have this code that is executed
when I click on
the "Return" button:
Private Sub ReturnButton_Click()
DoCmd.Close , ""
DoCmd.OpenForm "Vol Info", acNormal, "", "", acEdit, acNormal
DoCmd.RunCommand acCmdRefresh
End Sub
the "Vol Info" form has a OnCurrent event property to execute a
procedure
Form_Current() but it is not executed when I return from "Vol Hours"
via the
ReturnButton_Click. The Form_Current() in "Vol Info" is executed
however when I click on one of the navigation buttons to go to the next
or previous record in my
bound "Vol Info" form.
I've verified that if I change my ReturnBUtton_Click() procedure as
shown below, I'll get back to "Vol Info" with the correct information
displayed:
Private Sub ReturnButton_Click()
DoCmd.Close , ""
DoCmd.OpenForm "Vol Info", acNormal, "", "", acEdit, acNormal
DoCmd.RunCommand acCmdRefresh
'next two calls are to correct the On Current problem in "Vol Info"
DoCmd.RunCommand acCmdRecordsGoToNext
DoCmd.RunCommand acCmdRecordsGoToPrevious
End Sub
Why isn't the OnCurrent event being triggered when I go through the
ReturnButton_Click() routine before my changes?
thanks,
Larry
Dec 4, 3:05 pm show options
Newsgroups: microsoft.public.access
From: (e-mail address removed) - Find messages by this author
Date: 4 Dec 2005 13:05:17 -0800
Local: Sun, Dec 4 2005 3:05 pm
Subject: OnCurrent not triggered by return from another form
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse
I'm debugging a Access97 d.b. that has been converted to Access 2002.
the Hours button and this procedure:From form "Vol Info" I have a button that takes me to "Vol Hours" via
Private Sub GoToHours_Click()
DoCmd.Minimize
DoCmd.OpenForm "Vol Hours"
End Sub
When I return from "Vol Hours", I have this code that is executed
when I click on
the "Return" button:
Private Sub ReturnButton_Click()
DoCmd.Close , ""
DoCmd.OpenForm "Vol Info", acNormal, "", "", acEdit, acNormal
DoCmd.RunCommand acCmdRefresh
End Sub
the "Vol Info" form has a OnCurrent event property to execute a
procedure
Form_Current() but it is not executed when I return from "Vol Hours"
via the
ReturnButton_Click. The Form_Current() in "Vol Info" is executed
however when I click on one of the navigation buttons to go to the next
or previous record in my
bound "Vol Info" form.
I've verified that if I change my ReturnBUtton_Click() procedure as
shown below, I'll get back to "Vol Info" with the correct information
displayed:
Private Sub ReturnButton_Click()
DoCmd.Close , ""
DoCmd.OpenForm "Vol Info", acNormal, "", "", acEdit, acNormal
DoCmd.RunCommand acCmdRefresh
'next two calls are to correct the On Current problem in "Vol Info"
DoCmd.RunCommand acCmdRecordsGoToNext
DoCmd.RunCommand acCmdRecordsGoToPrevious
End Sub
Why isn't the OnCurrent event being triggered when I go through the
ReturnButton_Click() routine before my changes?
thanks,
Larry