Results 1 to 3 of 3
  1. #1
    custhasno is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    11

    Dlookup to auto complete in form

    Hi,

    I am pretty noob on Acess so even simply pointers to relevant guides or threads would be a great help.

    I am creating a database for registering horses and owners, with a serperate table for each (horses have a unique Id as do members, and single members can own multiple horses)

    Members will be registered using a members form which captures contact info and assigns the unique ID.



    What I wish to do is to create a form for registering horses, within which I want an information box which displays a Members name after I input the member ID on the horse Reg form.

    I know the concept is likely dlookup, but im a bit lost as to how i add this to the form, as the memebr Name is not in the Horse reg table, so I dont know how to add it to the form.

    I have attached the DB, its basic but i dont want to build it any further until i know what to do incase i need to go back to drawng board.

    Any help would be greatly appreciated.
    Last edited by custhasno; 09-08-2011 at 12:54 PM. Reason: spelling

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    One possible way to do this is to use a SubForm.

    Your two tables already have an implied relationship in the MemberID fields. You will need to create a relationship/link between the two tables.

    Create a [sub]Form that shows all the data you want to display in your 'Information Box'.

    Then attach the SubForm to your HorseRegistration Form.

    When you enter a new MemberID in your HorseRegistration Form, the Member information will show up on the sub form.

    There is a good explanation here:
    http://office.microsoft.com/en-us/ac...005187803.aspx

    Let me know if this helps.

  3. #3
    custhasno is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    11
    Hi Thanks for the info, I just gave it a go, read a little form the link too
    I get an error saying expected list seperator or)'

    ive reattached the DB with the change ive made, its likely an error on my part but not sure what.
    Last edited by custhasno; 09-08-2011 at 01:27 PM. Reason: change

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

Similar Threads

  1. Replies: 2
    Last Post: 05-16-2011, 04:11 PM
  2. Replies: 1
    Last Post: 03-31-2011, 02:51 AM
  3. DLookup to populate form
    By OMGsh Y did I say Yes in forum Forms
    Replies: 2
    Last Post: 12-09-2010, 01:05 PM
  4. Auto Complete Data
    By manicamaniac in forum Access
    Replies: 5
    Last Post: 09-14-2010, 03:38 PM
  5. Form Dlookup macro
    By lukekelly in forum Forms
    Replies: 2
    Last Post: 01-20-2010, 06:24 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