Hello George,
Your first suggestion resulted in a “method or data member not found,†that
error highlights the following code:
Private Sub StatusDescriptionID_AfterUpdate()
Me.PageRenewal.Pages(2).Visible = (Me.StatusDescriptionID = 2)
Specifically the “.StatusDescriptionID†within the parenthesis was
highlighted.
As for the ambiguous name error. I placed the Select Case code in both the
AfterUpdate and Current. This is the code used in both:
Private Sub Form_Current()
Select Case Me.StatusDescriptionID
Case 2
Select Case Me.PageRenewal.Pages(2).Visible = True
Case Else
Me.PageRenewal.Pages(2).Visible = Visible = False
End Select
End Sub
It turns out I already have an event name “Form_Current ().â€
I removed the _Current code leaving just the AfterUpdate and received the
same “Compile error: method or data member not found†as the previous
attempt. The offending line was: “Select Case
Me.PageRenewal.Pages(2).Visible = True†Specifically the “.Pages†was
highlighted.
Although I am still feeling my way through Access VB, I tried many different
iterations of ‘code’ (using term loosely). The closest I got something
working, with limitations, was this:
Private Sub StatusDescriptionID_AfterUpdate()
Me!PageRenewal.Visible = Nz(Me.StatusDescriptionID = 2, False)
Me.PageAmendment.Visible = Nz(Me.StatusDescriptionID = 2, False)
Me.PageApplication.Enabled = Nz(Me.StatusDescriptionID = 1, True)
End Sub
Probably not the best coding... but I grabbing straws right now.
I added an additional Tab and the enabling/disabling of the Application
page. This worked only when I physically changed information in the combo
box. I couldn’t get it to work OnCurrent as forms opened – previously “Openâ€
projects didn’t cause the desired visibility of the tab and the ‘Enabled’
function was somewhat suspect – sometimes it worked… sometimes it didn’t.
Any advice would be appreciated.
Thanks again,
Bill
_____________________________________________________________