Results 1 to 3 of 3
  1. #1
    CP611 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    57

    StrConv Query

    I have written the query below, it combines the data in the column 'Address' and 'Address2' with a pipe in the middle. I've added a StrConv Function to ensure that the new address is capitalised. However, it only capitalises the section before the pipe and not after, e.g Smith Cottage|london

    ADDRESSLINE1: StrConv([Address] & "|" & [Address2],3)

    Any ideas on how to make it add capitals to the other part as well?!



    Thanks

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Use StrConv on both sections separately

    Code:
    ADDRESSLINE1: StrConv([Address],3) & "|" & StrConv([Address2],3)
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    CP611 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    57
    That worked, perfect thank you!

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

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2018, 06:47 PM
  2. StrConv causing a read only error?
    By snipe in forum Forms
    Replies: 3
    Last Post: 08-12-2014, 11:02 AM
  3. StrConv missing only č,ć
    By DK22 in forum Access
    Replies: 1
    Last Post: 04-24-2014, 11:30 AM
  4. Force First Letter of every word to UPPERCASE (no StrConv)
    By yohansetiawan in forum Programming
    Replies: 13
    Last Post: 03-22-2012, 01:58 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