Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list box

Status
Not open for further replies.

dixxy

Technical User
Joined
Mar 4, 2003
Messages
220
Location
CA
Hi,

Is there a way to know if a user has selected something from a list box or not?

If my user does not select a item in a list box i want to tell him about it and not open a form until something is selected.

Can this be done?

Thanks,

Sylvain
 
How are ya dixxy . . .

Perhaps this:
Code:
[blue]   If IsNull([purple][b][i]Me.ListboxName[/i][/b][/purple]) Then
      MsgBox "Make a selection in Listbox please!"
   Else
      DoCmd.OpenForm . . .
   End If[/blue]

Calvin.gif
See Ya! . . . . . .
 
that did the trick.

Thanks again AceMan!!!

Thanks,

Sylvain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top