Results 1 to 7 of 7
  1. #1
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214

    Dlookup

    I have 2 tables (client list & change of address list). The client list contains the clients newest address and the change of addess list has both the old and new addresses in it. I was thinking of setting up the Dlookup function to draw the address from the client list but realized that when I put the new address in it will update in the change of address list there too. I don't want this to happen. Is there a way to have the change of address list look up the old address from the client list and have it not update once entered and if the client list address is updated again, it creates a new record in the other table? Is this possible? I know I can always copy and paste, but I want to avoid that.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Your post to me is not fully understandable. Its not clear ifyour question is around an existing design, or if it involves making the design.

    If one is to keep the history of addresses - then there should be a stand alone address table. There should be a field which designates which address is current.

    Not sure this helps.

  3. #3
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    I have 2 tables: 1. Client List 2. Change of Address List

    - The Client list contains all of the client information including their most current address.
    - I have to keep records of the clients addresses when they are updated. I do this through the Change of Address list. This list contains the client's ID and their old address and new address. What I want to happen is to have the Change of address list (when the client ID is inputted) to grab the address from the client list and put it in the old address fields. Then I want to enter the new address for the client in the new address fields in the change of address list. Then I want that address to be automatically updated into the client list address.

    - My question then becomes, is it possible to do this and have the old address (that was pulled from the client list into the change of address old address fields) not update when the new address is entered into the new address fields and then pulled into the client list? This creates a circular reference type of thing but I didn't know if there is a keep/dont update function.

    I hope this helps clarify what I am trying to accomplish.

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Yes. You can trigger an append query that would write the address info to the table.

    Another approach is simply to rely on the address table as a subform inside your client form.

  5. #5
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    Which one would you consider to be the better method? Simplest?

  6. #6
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    the subform is simplist. just include a field checkbox for 'current' so when someone has multiple past addresses you always know which is current...or if you want to know when they changed addresses you could include a ValidDate if that matters.

    Hope it helps.

  7. #7
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    That's what I was thinking. Thanks.

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

Similar Threads

  1. DLookUp Help
    By ThaGreenMoose in forum Forms
    Replies: 10
    Last Post: 06-15-2011, 12:08 PM
  2. May it is Dlookup
    By cap.zadi in forum Programming
    Replies: 3
    Last Post: 05-09-2011, 05:58 AM
  3. Dlookup help
    By jcaptchaos2 in forum Access
    Replies: 17
    Last Post: 04-21-2011, 01:33 PM
  4. DLookup()
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 09-15-2010, 07:20 AM
  5. Dlookup??
    By Vikki in forum Access
    Replies: 4
    Last Post: 02-16-2010, 07:59 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