J
John D
This is weird!
I have a subform [FA1s3b_KeyPeopleList] on a main form [FA1_OrgMaster]. The
subform is a continuous form that shows people and the positions they have in
the organization selected on the main form. There is a "View/Edit" command
button (cmdbtnViewEdit) on the subform next to each name so the user can open
a larger form [FC4_PplOrg] to edit info for a person.
There is an Event Procedure in the On Click event for [cmdbtnViewEdit]. When
the button is clicked the proceedure opens [FC4_PplOrg]. This works fine. I
want to add some code to that procedure.
When I click the build button ( ... ) in the Property Window for
[cmdbtnViewEdit] the VB Editor opens, but there is no Class Module window for
the form [FA1s3b_KeyPeopleList]. When I open the Object Browser I can click
every other form name that has code and a Class Module code window for that
form opens, but nothing happens when I click [FA1s3b_KeyPeopleList].
I KNOW there is code in the On_Click event for [cmdbtnViewEdit] because:
A) when the button is clicked it opens the form [FC4_PplOrg],
B) the On Click Event in the [cmdbtnViewEdit] Properties Window has [Event
Procedure] in it
C) When I run the documenter for [FA1s3b_KeyPeopleList] it shows that
[cmdbtnViewEdit] has an OnClick Event Procedure, and the Code in the Class
Module is shown at the end of the Documenter report with the correct
procedure:
Private Sub cmdbtnViewEdit_Click()
DoCmd.OpenForm "FC4_PplOrg"
End Sub
So - I can see the code in Documenter, when I click the button it opens a
form just like it's supposed to, I've got [Event Procedure] in the button's
On Click Event Property - but I can't get the Code window to open.
Anyone got any idea what's going on?
Thanks - John D
I have a subform [FA1s3b_KeyPeopleList] on a main form [FA1_OrgMaster]. The
subform is a continuous form that shows people and the positions they have in
the organization selected on the main form. There is a "View/Edit" command
button (cmdbtnViewEdit) on the subform next to each name so the user can open
a larger form [FC4_PplOrg] to edit info for a person.
There is an Event Procedure in the On Click event for [cmdbtnViewEdit]. When
the button is clicked the proceedure opens [FC4_PplOrg]. This works fine. I
want to add some code to that procedure.
When I click the build button ( ... ) in the Property Window for
[cmdbtnViewEdit] the VB Editor opens, but there is no Class Module window for
the form [FA1s3b_KeyPeopleList]. When I open the Object Browser I can click
every other form name that has code and a Class Module code window for that
form opens, but nothing happens when I click [FA1s3b_KeyPeopleList].
I KNOW there is code in the On_Click event for [cmdbtnViewEdit] because:
A) when the button is clicked it opens the form [FC4_PplOrg],
B) the On Click Event in the [cmdbtnViewEdit] Properties Window has [Event
Procedure] in it
C) When I run the documenter for [FA1s3b_KeyPeopleList] it shows that
[cmdbtnViewEdit] has an OnClick Event Procedure, and the Code in the Class
Module is shown at the end of the Documenter report with the correct
procedure:
Private Sub cmdbtnViewEdit_Click()
DoCmd.OpenForm "FC4_PplOrg"
End Sub
So - I can see the code in Documenter, when I click the button it opens a
form just like it's supposed to, I've got [Event Procedure] in the button's
On Click Event Property - but I can't get the Code window to open.
Anyone got any idea what's going on?
Thanks - John D