Results 1 to 11 of 11
  1. #1
    IwannaBNVegas is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    8

    Populate from one form to another

    Hi,
    I'm very new at access. I want to make a database for a moving company, here's where I'm stuck:



    Our customers move from
    1234 XXX Street
    Los Angeles, CA, USA

    to

    5678 YYYY Street
    Paris, France

    a few months later, they move to:

    91011 ZZZ Street
    Orlando, FL, USA

    Every time they move, we will update their "Customer Profile" to the address where they currently live.
    Every time they move, the current address will also be "origin address".

    Now the question:
    is it possible (with a button, maybe) to fill the "origin address" automatically (from customer profile), but when the address in the "customer profile" changes, the "origin address" won't change for this move. I hope this makes sense.

    If not, please let me know.

    Thank you for your help.
    Sylvia

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Options:

    1. Save the actual full address in each move record.

    2. Have a table of addresses. Each address has a unique ID. Save the unique ID in the customer profile record and in the move record.
    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.

  3. #3
    IwannaBNVegas is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    8
    I just want to avoid typing the address twice. Once for the customer profile and again for the move.
    Kind of like when you have customers and orders. A customer may order many times, and usually use his address as the send to address, but sometimes they may want to ship it somewhere else.
    I hope I'm making sense.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If origin and profile addresses can be different then need independent fields to save data. If you don't want the origin address for previous move records to change when the profile is changed to a more current address, then must do one of the options I indicated.
    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.

  5. #5
    IwannaBNVegas is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    8
    Maybe I'm thinking too complicated. Is there a way to make a button to Copy from From1 and Paste on Form2? And when I make changes on Form1 it won't influence Form2? Thanks for your help!

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Yes code can copy the data. What fields is form 1 bound to? What fields is form 2 bound to? My previous comments still apply.
    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.

  7. #7
    IwannaBNVegas is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    8
    They are both bound to Tables. tblShippers and tblOriginAddress.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Still don't have anything new to offer. Which of the suggested options do you want to use?
    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.

  9. #9
    IwannaBNVegas is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    8
    It doesn't matter. I guess the one which is easier to explain, since I'm so new at this.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You need to be aware that 'copy/paste from Form1 to Form2' is meaningless if data on Form2 has no place to be saved.

    I guess option two is easiest.

    Build a table of addresses. This table can have a field to identify customer the addresses are associated with.

    Fields in customer profile and table of move records for the address ID as foreign key.

    Comboboxes on forms to select address. Choices can be limited by the customer ID.

    Just don't know enough about your data structure and form designs to be more specific.
    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.

  11. #11
    IwannaBNVegas is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    8
    I will try that. Thanks for your help. )

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

Similar Threads

  1. Replies: 63
    Last Post: 01-25-2013, 05:20 AM
  2. Replies: 2
    Last Post: 10-24-2012, 02:38 AM
  3. combo box to Populate a form
    By rcappy in forum Forms
    Replies: 1
    Last Post: 01-30-2012, 03:07 AM
  4. Pre populate a second form
    By sliminconcoova in forum Forms
    Replies: 3
    Last Post: 09-01-2010, 08:34 AM
  5. Replies: 1
    Last Post: 08-14-2009, 08:41 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