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 / August 2006

Tip: Looking for answers? Try searching our database.

sincronized combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Giripoduru - 31 Aug 2006 07:25 GMT
hi

i have two combo boxes  'category' and 'capacity'

the data in  first combo box 'category' is as follows
category-A
category-B

the data in second combo box  'capacity' is as follows
200
300
400
500

the combo boxes take th values form the value list and not from any
table/query  and stores the data in to a table 'tblone' which has the
following three fields
sno  -- is a autono
category  - text data type
capacity - number data type

here i would like the
second combo box to show me 200 and 300 if i select the category-A in the
first combo
and
the second combo must show me 400 and 500 if i select the category-B in the
first combo

i am an access beginner

suggest me pls
Regan - 31 Aug 2006 08:26 GMT
hi Giripoduru

Put this code on the on change event OR afterupdate(i think)

Private Sub catagory_Change()

If me!catagory = "catagory-A" then
      capacity.rowsource = "200;300"
Elseif Me!catagory = "catagory-b" then
      capacity.rowsource = "400;500"
End if

end sub

Hope this helps

Regan
 
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.