Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11

    Auto Fill

    Hi there



    I am a noob and have limited knowledge of access and no SQL knowledge.
    I am trying to create a database for our service team.
    I am logging Jobs to our customers for completion.

    I am having trouble getting the customer data to automatically populate in the Jobs Form.
    I want to be able to type the customer details and populate the address & telephone number etc.. Also if the customer is not in the list I would like the option to add them to the customer table.

    I would appreciate any help, also simple instructions would be a bonus!

    Thanks in advance
    Kerry

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This get you started?

    http://www.baldyweb.com/Autofill.htm

    Search here on "notinlist" for a way to add new customers.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    ok, I have started from scratch.

    I have 2 tables 1 for customers and 1 for Commercial Jobs.
    I want to select/type in a customer in the commercial jobs form and populate the address and contact details. would the best way to do this be a dlookup? as I was not quite sure following the steps from the link?

    I have the following fields in the "Customers" table: CustomerName, CustAdd1, CustSuburb, CustPhone, CustContact and I want these populated in the following fields in the "Commercial Jobs" table: JobCustomer, JobAdd1, JobSuburb, JobPhone, JobContact.

    As I dont know anything about Visual Basics I would be really grateful if someone could help me with the code and tell me where and how to insert it?
    Sorry if I sound dumb :-(
    Thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Here's where to insert the code:

    http://www.baldyweb.com/FirstVBA.htm

    Using DLookup would be less efficient and would be more complicated.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    Thanks, do all of the boxes need to be combo boxes?

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No, just the one you choose customer with.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    ok, I think I may need a little more help than first thought, I have tried a few times but seem to be getting the address field instead of the name. I have tried changing the bound to number but this does not help. Is there anywhere I can upload my access to for someone to see where I am going wrong?
    Thanks

  8. #8
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    Quote Originally Posted by Kerrydunk View Post
    ok, I think I may need a little more help than first thought, I have tried a few times but seem to be getting the address field instead of the name. I have tried changing the bound to number but this does not help. Is there anywhere I can upload my access to for someone to see where I am going wrong?
    Thanks
    I can set up a screen share if someone would be kind enough to take a look?
    I am supposed to have this up and running by tomorrow for work and am starting to get to the end of my teather!! :-(

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You should be able to attach it here. Compact/repair and then zip.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    Quote Originally Posted by pbaldy View Post
    You should be able to attach it here. Compact/repair and then zip.
    Ok here it is, I really appreciate the help :-)
    Last edited by Kerrydunk; 04-26-2011 at 02:55 AM.

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Quote Originally Posted by Kerrydunk View Post
    I have tried a few times but seem to be getting the address field instead of the name. I have tried changing the bound to number but this does not help. Is there anywhere I can upload my access to for someone to see where I am going wrong
    I don't see that effort anywhere. Is it in another version?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    Quote Originally Posted by pbaldy View Post
    I don't see that effort anywhere. Is it in another version?
    No thats the only version I have? What is it you are unable to see?

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You said you had tried but kept getting the address field instead of the name. I don't see any code in the db that is getting the address or anything else. What exactly are you looking to get fixed?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  14. #14
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    Ah, I am now getting the name field but cannot get the address into the relevant fields in the Jobs form?

  15. #15
    Kerrydunk is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    11
    if its easier for me to show you my screen is ready for sharing
    https://join.me/751-489-538

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Auto Fill Issue #2
    By Swilliams987 in forum Database Design
    Replies: 9
    Last Post: 01-21-2011, 03:52 PM
  2. Auto-Fill names
    By jlclark4 in forum Forms
    Replies: 10
    Last Post: 12-13-2010, 03:04 PM
  3. Auto-Fill
    By sophiecormier in forum Programming
    Replies: 3
    Last Post: 10-02-2010, 08:29 AM
  4. Auto-fill in datasheet
    By Terence in forum Database Design
    Replies: 2
    Last Post: 03-18-2010, 03:42 PM
  5. Auto fill a table?
    By newtoAccess in forum Access
    Replies: 3
    Last Post: 11-21-2009, 08:21 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