Results 1 to 3 of 3
  1. #1
    MatthewGrace is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    159

    Table synch question...


    I am new to Access... I have linked a very simple and descriptive picture ( http://tinypic.com/r/23kyaf7/6 ) as an aid to explain what I'm trying to do: After a user selects a persons name from the list (for example, "Guy 3" has been selected from the list in the pic), the very next field in the record is populated with a list of addresses for the person selected... In this example, Guy 3's addresses would be "Main 3" and "Alt 3". Also, if it matters, I was able to get that list of Guy 1-4 by entering the Design View for the table, and choosing "Lookup Wizard..." for the Data type, and Access crafts a simple SQL statement getting all names in the customer field from the Customers Table.

  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
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Surely you don't want both addresses populated into the one field? Or do you really want the combobox to show main and alternate addresses as choices in its RowSource list? The address data is not normalized and so the RowSource cannot be a simple SELECT query. Also, main and alternate addresses do not each have unique ID. All this means have to save the full address in Orders table. As Paul pointed out in referenced link, this violates relational database principle of not duplicating data.

    Review this tutorial for dependent (cascading) comboboxes http://datapigtechnologies.com/flash...combobox2.html. The RowSource for the addresses combobox, with your data structure, would be like:

    SELECT Address FROM (SELECT CustomerID, Main As Address FROM Customers
    UNION SELECT CustomerID, Alt FROM Customers) WHERE CustomerID=Forms!Orders!CustomerID;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Table Union Question
    By Caulerpa in forum Queries
    Replies: 5
    Last Post: 01-14-2013, 03:02 PM
  2. Linked Table Question
    By RayMilhon in forum SQL Server
    Replies: 2
    Last Post: 03-26-2012, 01:19 PM
  3. Synch database after offline update
    By snoopy2003 in forum Database Design
    Replies: 0
    Last Post: 02-21-2011, 11:40 AM
  4. Table Relationship Question!
    By mbake085 in forum Access
    Replies: 5
    Last Post: 08-05-2010, 09:50 AM
  5. synch 2 combo boxes in datasheet view
    By kapplers in forum Forms
    Replies: 2
    Last Post: 11-09-2009, 09:09 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