Results 1 to 3 of 3
  1. #1
    dukati7 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    4

    Making a simple access combobox and form

    I'm pretty new to access and need big time help

    If I wanted to create a thing that would have all 50 states, and then another table populated with cities. How would I make it "step by step" so that I come to a form that has 2 drop down boxes with one being the states and one showing the cities in that state.

    But I want to make it so when I choose PA from a drop down I can only see cities from PA and so on.



    It would be a great help if someone can tell me step by step just so I understand it better.

    Thanks!

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    What you need to do is reset the row source for the cities combo box, each time you update, i.e. select from, the state combo box. You would best do this in the After_Update event of the state combo box, something like this:

    me!cboCityList.Rowsource = "Select CityName from tblCities where CityState = '" & cboStatelist & "'"
    me!cboCitylist.requery

    HTH - post back if you need more detail.

    John

  3. #3
    dukati7 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    4
    I actually need to start from the beginning with actually making the tables and relationships. From scratch. I can never seem to get it to work.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 08-25-2011, 02:28 PM
  2. making expire ms access form..
    By alex_raju in forum Access
    Replies: 2
    Last Post: 07-13-2011, 11:27 AM
  3. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  4. Replies: 0
    Last Post: 12-16-2009, 01:14 PM
  5. Making the launched form seperate from Access
    By MonsterMaxx in forum Access
    Replies: 1
    Last Post: 09-06-2009, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums