Results 1 to 3 of 3
  1. #1
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376

    String together different blocks of info using DLookup

    I want to string together a few fields into 1 string for an address.



    The fields are "Address", "City", "State", "Zip" & "Country"

    How can I do that to put them into 1 text box named TxtAddress?

    Thanks

    Dave

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Really haven't given enough details.

    How is DLookup involved? Usually better method than DLookup() to retrieve related data.

    Are these fields in form or report RecordSource? Can do the concatenation in query then bind textbox to the constructed field.

    Address & ", " & City & ", " & State & " " & Zip & " " & Country
    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
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    June7,

    I solved this by putting in another field in the table as a "Calculated" field and then used that in the DLookup, worked great.

    Thanks

    Dave

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

Similar Threads

  1. Replies: 5
    Last Post: 05-20-2014, 10:39 AM
  2. Importing huge files blocks Access
    By dskysmine in forum Import/Export Data
    Replies: 1
    Last Post: 06-14-2012, 08:24 AM
  3. Comment and Uncomment blocks of code
    By TheShabz in forum Tutorials
    Replies: 2
    Last Post: 12-14-2011, 10:23 AM
  4. Extracting info using dlookup?
    By herbc0704 in forum Queries
    Replies: 3
    Last Post: 10-04-2011, 03:45 PM
  5. Replies: 2
    Last Post: 05-16-2011, 04:11 PM

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