Results 1 to 5 of 5
  1. #1
    AccessSHELL is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2020
    Location
    U.S.
    Posts
    58

    Question Length of answer

    I have a table with 2 fields. We can call them Field1 and Field2

    I need to sort the table ascending by the length of Field2. I am having some trouble.

    Please help.



    Thanks

  2. #2
    AccessSHELL is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2020
    Location
    U.S.
    Posts
    58
    I got it. Thanks

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    So please post your solution, as it might help others.
    After all, that is what these forums are about?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    AccessSHELL is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2020
    Location
    U.S.
    Posts
    58
    Code:
    SELECT tblQA.Field1, tblQA.Field2, Len(([Field1])) AS Length FROM tblQAORDER BY Len(([Field1]));

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Quote Originally Posted by AccessSHELL View Post
    Code:
    SELECT tblQA.Field1, tblQA.Field2, Len(([Field1])) AS Length FROM tblQAORDER BY Len(([Field1]));
    Thanks for the solution.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. I need an answer
    By Getoarii in forum Access
    Replies: 10
    Last Post: 05-27-2016, 01:01 AM
  2. Answer a message box
    By NISMOJim in forum Forms
    Replies: 3
    Last Post: 08-22-2015, 10:33 PM
  3. Split Table - have been looking for answer
    By JoJo6205 in forum Access
    Replies: 7
    Last Post: 02-26-2015, 01:04 PM
  4. SBA IT national Elections answer
    By Paula in forum Import/Export Data
    Replies: 2
    Last Post: 10-22-2011, 07:29 AM
  5. There should be an easy answer, Please Help.
    By tucker1003 in forum Database Design
    Replies: 3
    Last Post: 03-03-2011, 01:03 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