Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Need Help Please with Combo or List boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TotallyConfused - 19 Nov 2007 08:35 GMT
I have researched for this type of question in this forum and can't find
something similar.  I am not sure if this can be done since most questions
are based on different tables.  I feel this is maybe very simple but I am
stuck and can't get this to work.  I have a form with only one table (very
simple) that I have two list boxes .  When the user chooses an item, I want
the second list box to show a description of the item.  It is only for the
user to see.  However, I have tried to use some of the examples given in the
forum and can't seem to get my form to work.  So far I have list box 1 and
list box two to list the items.  But when I chose an itme in Box 1 the
correct description does not appear in box 2.  I have on the After Update
event for List box 1 the following Me.Listbox1.Requery.  I have tried
changing to Lisbox2 but that doesn't work.  Any help will be greatly
appreciated.  Thank you.
Ofer Cohen - 19 Nov 2007 09:10 GMT
Why you are using two list's boxes? Instead of the second list box (for the
description) create a text box that will display the description every time
you select an item from the first list box.

In the first list box RowSource include also the description.
Select Code,Description From TableName

In the text box ControlSource refer to the second column (the decription)
=[ListBoxName].Column(1)

The column number start with 0, this is why the second column will be 1

Signature

Good Luck
BS"D

> I have researched for this type of question in this forum and can't find
> something similar.  I am not sure if this can be done since most questions
[quoted text clipped - 9 lines]
> changing to Lisbox2 but that doesn't work.  Any help will be greatly
> appreciated.  Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.