opening multiple items with one button

dj_chunky2002

New member
Local time
Today, 14:53
Joined
Apr 23, 2007
Messages
2
I'm using access. i have a combo box on a form with a list of hyperlinked items, but i want a button to open the selected item. how can i do this?
 
place the particular DoCmd.Open code in the On_Change event of the combo box... use the current selection of the combo box to determine what exactly you need to open
 
couldn't go into a bit more detail could you? an example maybe? i'm very new to this! lol
 
couldn't go into a bit more detail could you? an example maybe? i'm very new to this! lol

in your form:

Code:
Private Sub Combo0_Change()
    Select Case Me.Combo0
        Case 1
               Do this...
               DoCmd.OpenForm "myFormName"
               DoCmd.OpenForm "myOtherFormName"
        Case 2
               DoCmd.OpenReport "thisReport",acViewPreview  
               DoCmd.OpenReport "thisOtherReport",acViewPreview  
                .
                .
                .
        Case Else
               DoCmd.HokeyPokey
               DoCmd.TurnAround
    End Select
End Sub
 

Users who are viewing this thread

Back
Top Bottom