M maximus4444 New member Local time Today, 15:56 Joined Oct 24, 2006 Messages 2 Oct 24, 2006 #1 I am having problems figuring out how to run a macro if and only if a selection is made in a separate list box. Any help would be great. Jon
I am having problems figuring out how to run a macro if and only if a selection is made in a separate list box. Any help would be great. Jon
jfgambit Kinetic Card Dealer Local time Today, 21:56 Joined Jul 18, 2002 Messages 798 Oct 25, 2006 #2 Have you tried an IF statement on the OnClick event of the Listbox Code: If Me.ListBoxName = "YourChoice" Then DoCmd.RunMacro "MacroName" Else End If Code: If the Listbox is a value then try this If Me.listboxname.value = 1 Then DoCmd.RunMacro "MacroName" Else End If HTH
Have you tried an IF statement on the OnClick event of the Listbox Code: If Me.ListBoxName = "YourChoice" Then DoCmd.RunMacro "MacroName" Else End If Code: If the Listbox is a value then try this If Me.listboxname.value = 1 Then DoCmd.RunMacro "MacroName" Else End If HTH