Results 1 to 3 of 3
  1. #1
    jacrum is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    1

    Autofill with data from another form

    Greetings,

    Forgive me for this being a lame question, but I have been searching and scouring the internet for the answer and a possible how-to on this and have had no luck in finding the answer. So here goes.

    I am building a key management database for the facilities management department of my employer. I have one table of user profiles (all indexed and sorted by an employee's ID number) and a table of various buildings (all indexed and sorted by a building number). There is a form that will be filled out in the database for requesting keys or access to rooms in buildings. What I need this form to do (that I have been unable to have it do) is to be able to input a user's ID number into the ID field on the form and AUTOFILL the other necessary information in using the entry in that table. I also need the same thing to occur with the buildings table (selecting the building name will AUTOFILL the building number and address).



    Could anyone provide a how-to step-by-step on how I should go about setting this up?

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    You need to add unbound text boxes to your form and then fill them using DLookup - do a serach for DLookup and you should get lots of tips/tutorials. This is the link to Microsoft:
    http://support.microsoft.com/kb/208786

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    All you need in the tables is a field with the PrimaryKey of the other table as a ForeignKey and the tables can be joined on that field and then all of the fields from both tables can be displayed as if they were in one table.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2013, 10:56 AM
  2. Autofill form fields
    By roboticsguy1988 in forum Forms
    Replies: 1
    Last Post: 08-10-2009, 08:56 AM
  3. Form Data problem
    By rjjhome in forum Forms
    Replies: 7
    Last Post: 05-29-2009, 11:51 AM
  4. Replies: 9
    Last Post: 03-24-2009, 09:19 PM
  5. Replies: 1
    Last Post: 01-08-2007, 01: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