Results 1 to 2 of 2
  1. #1
    mwebster is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    1

    Multiple Auto Fill in Form

    Hello!

    I am somewhat unfamiliar with Access... We have a database for the departmental webmasters at our company. In the database there are two tables:

    Webmasters: contains information about the webmaster and the sites they work on
    Departments: contains information about the departments including the number, name, division, and the path to the department's website on the server

    A webmaster could be working on multiple sites. On the form for the particular webmaster I want the following columns:



    DeptNo | Path

    Where the path is automatically generated when you select the DeptNo in the combo box. The combo box is a list of the DeptNos in the Departments table and then saves it in the Webmasters table. I was able to get it to work on one but I want to be able to do this up to six times.

    An example:
    John Doe works on three department's websites: 111, 222, 333. Each website has their own path declared in the Departments table. In the form I want to select 111 for the Dept1, 222 for Dept2, and 333 for Dept3 with the Paths automatically being generated. I don't want the paths to be saved in the Webmaster's table, just want it to show on the form.

    Any help is greatly appreciated!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I think you want 2 combos, both unbound.
    My Form is Form15.
    Combo0: Webmasters
    Row Source: SELECT distinct Webmasters.webmaster FROM Webmasters;

    Combo2: Departments
    Row Source: SELECT Webmasters.webmaster, Departments.DeptNo, Departments.pathToWebsite
    FROM Departments INNER JOIN Webmasters ON Departments.DeptNo = Webmasters.deptNo
    WHERE (((Webmasters.webmaster)=[Forms]![Form15]![Combo0].[value]));

    These combos are display only-- nothing is saved to a Table.

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

Similar Threads

  1. Auto fill a field from multiple lookup
    By shahemaan in forum Forms
    Replies: 4
    Last Post: 06-13-2014, 04:00 PM
  2. Replies: 2
    Last Post: 06-21-2011, 10:08 AM
  3. Auto Fill
    By Kerrydunk in forum Forms
    Replies: 16
    Last Post: 04-26-2011, 12:15 AM
  4. Auto-Fill
    By sophiecormier in forum Programming
    Replies: 3
    Last Post: 10-02-2010, 08:29 AM
  5. How To Fill In Multiple Fields From A Form
    By SamanthaSamuels in forum Access
    Replies: 3
    Last Post: 08-16-2010, 12:13 PM

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