Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2007

Tip: Looking for answers? Try searching our database.

Select Case problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobUCSD - 29 Jan 2007 00:49 GMT
With the code below I'm trying to make pages on a tab control visible or not
based on the type of visit. I'ts in the lstVisit_GotFocus event. I don't get
any error messages but it doesn't do anything either. All tabs are visible.

Any help would be greatly appreciated. Thanks, Rob
*********************************************************
Private Sub lstVisit_GotFocus()
  On Error GoTo lstVisit_GotFocus_Error
   
      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
 
       Else: Me.VisitType = "Device"
           
           Me.pgAblations.Visible = False
           Me.pgCardioversions.Visible = False
           Me.pgClinicVisits.Visible = False
           Me.pgDevices.Visible = True
           Me.pgTilts.Visible = False
       
   End If
           
   Me.Form.AllowEdits = True
   Me.Refresh

  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
RobUCSD - 29 Jan 2007 00:55 GMT
Never mind everybody, I figured it out right after I sent the msg. Hope
everyone has a great night and good luck in the upcomming week. Rob

> With the code below I'm trying to make pages on a tab control visible or not
> based on the type of visit. I'ts in the lstVisit_GotFocus event. I don't get
[quoted text clipped - 34 lines]
> lstVisit_GotFocus of VBA Document Form_frmVisitNewEdit"
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.