I am currently working on an Access Database. On the form i have two combo boxes. Depending on the selection in those boxes about 12 list boxes are filled out of a table. It works well this far. But now i have a hyperlink shown in one list box. The problem is that i want to enter the homepage by pressing a button. But it does not work. Only when I click in the list box where the Link is shown, the code for the button being pressed works. Why won't it work in the first way without me clicking in the "Shoplink-List box".
The code I use is shown below. ( I hope you understand my question, i am not a native speaker.Sorry)
Private Sub Kombinationsfeld47_AfterUpdate() (<---- This is the selection)
Me.Liste_Shoplink.Requery (<--- the List box with the hyperlink)
Private Sub shoplink_Click()
If [Liste_Shoplink] <> "" Then
Dim shoplink As String
shoplink = [Liste_Shoplink]
Application.FollowHyperlink (shoplink)
Else
MsgBox "No Product in shop"
End If