Results 1 to 3 of 3
  1. #1
    CCAccess2010 is offline Novice
    Windows 98/ME Access 2007
    Join Date
    Oct 2010
    Posts
    2

    Question Split Form - Auto Populate


    Hello,

    I am having an issue creating a database and wanted to see if anyone could help. I have a contact list with names, addresses and phone numbers and I would like to create a search splitform so that when I type in a name it auto populates into the form and datasheet.

    For Example

    Combo Box - County - Saginaw
    Text Box - Johnson
    Form - 1st Johnson in list
    Datasheet - all Johnson living in Saginaw County

    I hope that this makes sense, I have been racking my brain and I cannot figure out how to make the form populate.

    Please, help!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    that's actually quite simple. you can put the combo on the top half of the form, then subform on the bottom half, set the default view to datasheet, and bind it to a query that is written such as:
    Code:
    SELECT * FROM TABLE WHERE
    
    [county] = forms!mainform!combo
    on the afterUPDATE event of the combo, simply write:
    Code:
    me.subform.form.requery

  3. #3
    CCAccess2010 is offline Novice
    Windows 98/ME Access 2007
    Join Date
    Oct 2010
    Posts
    2
    I'm not allowed to view the form in datasheet view, I actually wanted to type in the information into a search box so that when they put in any source of information it will autopopulate in the form and subdatasheet below. For example, if they put in the county it will bring up all information associated with that county. However, if they put in a person's last name into the same text box it will bring every person with that last name. Does that make sense?

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

Similar Threads

  1. Auto populate form using combo box
    By bundy75 in forum Access
    Replies: 6
    Last Post: 08-29-2010, 06:18 AM
  2. Auto-populate form question: again!
    By revnice in forum Access
    Replies: 5
    Last Post: 08-06-2010, 04:02 PM
  3. Auto-populate form question
    By revnice in forum Access
    Replies: 19
    Last Post: 08-06-2010, 01:01 PM
  4. Auto Populate Data from Main Form
    By billiejean in forum Forms
    Replies: 0
    Last Post: 08-05-2009, 08:08 AM
  5. Auto populate fields on a form
    By ldarley in forum Forms
    Replies: 0
    Last Post: 08-14-2008, 09:39 AM

Tags for this Thread

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