Results 1 to 12 of 12
  1. #1
    Join Date
    Jan 2010
    Posts
    12

    want text box in form to automatically access info related in list box

    I am creating a form and have a list box with customer names. That info is drawn from a table with customer info (ie...name, street address, city, state, zip). I want to create text boxes below the list box so that when I pick a customer from the list box, the address info automatically fills in.

    Note: The name, street address, city, state, and zip are all separate fields in the table.



    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Use the AfterUpdate event and the Column() property of the ListBox to fill in your TextBoxes.

  3. #3
    Join Date
    Jan 2010
    Posts
    12
    I was going through a tutorial and saw that but upon further inspection of my "event" tab, I don't have an afterUpdate

  4. #4
    Join Date
    Jan 2010
    Posts
    12
    Working in a report not a form is why, I guess

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Reports are just a piece of paper and not interactive and a ListBox is not a very good control for a Report.

  6. #6
    Join Date
    Jan 2010
    Posts
    12
    Understood. I haven't worked with databases in over 7 years and even then I was a novice. I am trying to create some pre formatted forms or reports that we use daily here at my dive company. I would like to be able to just plug in the specifics and have it print the report

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I appreciate what you are trying to achieve. How can we help?

  8. #8
    Join Date
    Jan 2010
    Posts
    12
    Maybe it would be best to explain my predicament. My Bid Invoice will incorporate many aspects of access but I am conquering them one at a time.

    First: I have a table with all of our customers info. My first task on my report is to be able to select one customer from a list or combo and then have the other info such as street address, city, state, and zip fill in automatically from my selection. I have no idea where to begin. Feel free to treat this as if I was 5 yo. LOL. I will not be offended and want to learn

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Have you looked at any of the templates that come with Access or the other ones on line?

  10. #10
    Join Date
    Jan 2010
    Posts
    12
    That's what I'm trying now. I may be on to something. I'll keep ya posted

  11. #11
    Join Date
    Jan 2010
    Posts
    12
    no luck. about to give up

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I'm sure there is something like Contacts or something like that. That would give you the basic table and you could modify the forms and reports to do what you want. It is by far the best way to go when you have a lot to learn about Access.

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

Similar Threads

  1. Import multiple text files automatically
    By instructorTek in forum Import/Export Data
    Replies: 30
    Last Post: 10-20-2012, 04:50 PM
  2. Not able to make Form from related Tables
    By a1y1a1y1 in forum Forms
    Replies: 5
    Last Post: 01-02-2010, 12:33 PM
  3. copy info in subform as well as main form
    By Coolpapabell in forum Forms
    Replies: 0
    Last Post: 09-30-2009, 10:02 AM
  4. Pulling Record Info From Sub Form
    By redlich23 in forum Forms
    Replies: 1
    Last Post: 09-02-2009, 02:10 PM
  5. Summing info in one Sub form to another
    By Mxcsquared in forum Forms
    Replies: 0
    Last Post: 12-14-2005, 11:44 AM

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