List Box Help

maximus4444

New member
Local time
Today, 15:56
Joined
Oct 24, 2006
Messages
2
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
 
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
 

Users who are viewing this thread

Back
Top Bottom