Results 1 to 3 of 3
  1. #1
    WAVP375 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171

    substituting field in a query with another field in the same query

    I've downloaded a file from a local government with has among other fields, Name, Address1, Address2, Address3 which is city and state, and zip.
    I'm attempting to create a query that will move concatenated Address3 and zip to address2 if address2 is blank. Then blank address3.

    I have attempted to do this in the print object without any success figuring I needed to do it in a query but so far that too is unsuccessful. I can create an expression in the query that determines that the field is blank but have not been able to move the address3 to it.

    Looking for a better way or a head in the right direction

    Thanks

  2. #2
    WAVP375 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    Sorry to bother. I Have just figured it out.

    Thanks

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Posting your solution could help other users. For what it's worth, I would not move the data around, I'd handle the potentially empty field on forms/reports. That way address3 is consistent in what it holds. You know your overall situation though.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 05-17-2017, 06:17 AM
  2. Replies: 1
    Last Post: 08-31-2015, 10:38 PM
  3. Replies: 10
    Last Post: 03-04-2015, 01:32 PM
  4. Replies: 3
    Last Post: 07-09-2014, 06:39 AM
  5. Replies: 3
    Last Post: 03-26-2014, 10:49 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