R
RobUCSD
Could somebody take a look at the code below. I can't seem to get it to work.
I get a msg saying "This method or procedure not supported in Private Sub
lstVisit_GotFocus()" thanks, rob
*********************************************************
Private Sub lstVisit_GotFocus()
On Error GoTo lstVisit_GotFocus_Error
Me.Form.AllowEdits = True
Me.Refresh
If Me.VisitType = "Ablation" Then
Me.pgAblations.Visible = True
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Device" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = True
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Clinic" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = True
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Cardioversion" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = True
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Telephone" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = True
ElseIf Me.VisitType = "Tilt Table" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = True
Me.pgTelephone = False
End If
On Error GoTo 0
Exit Sub
lstVisit_GotFocus_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure
lstVisit_GotFocus of VBA Document Form_frmVisitNewEdit"
End Sub
I get a msg saying "This method or procedure not supported in Private Sub
lstVisit_GotFocus()" thanks, rob
*********************************************************
Private Sub lstVisit_GotFocus()
On Error GoTo lstVisit_GotFocus_Error
Me.Form.AllowEdits = True
Me.Refresh
If Me.VisitType = "Ablation" Then
Me.pgAblations.Visible = True
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Device" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = True
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Clinic" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = True
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Cardioversion" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = True
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = False
ElseIf Me.VisitType = "Telephone" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = False
Me.pgTelephone = True
ElseIf Me.VisitType = "Tilt Table" Then
Me.pgAblations.Visible = False
Me.pgCardioversions.Visible = False
Me.pgClinicVisits.Visible = False
Me.pgDevices.Visible = False
Me.pgTilts.Visible = True
Me.pgTelephone = False
End If
On Error GoTo 0
Exit Sub
lstVisit_GotFocus_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure
lstVisit_GotFocus of VBA Document Form_frmVisitNewEdit"
End Sub