Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    So that should indicate that there should be some as something in there is text?
    Put it all into a string variable, debug.print it. Copy that to the query SQL window and try and run it. See if that highlights the errant field.
    Last edited by Welshgasman; 06-17-2023 at 12:22 PM.
    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

  2. #17
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I then modified this query, replacing every instance of “ID” with “Regn” (The field I wish to sort on) :-
    but you haven’t- for example you have

    ON A.Regn>= B.ID



Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 10-04-2017, 06:18 PM
  2. Sort Order problem
    By Chris@harveynorman in forum Reports
    Replies: 8
    Last Post: 11-22-2016, 10:42 PM
  3. Asc/Desc/reset sort button code
    By mightyteegar in forum Programming
    Replies: 2
    Last Post: 10-30-2012, 04:24 PM
  4. Forms\VBA Code\Sort Combo Box
    By Ran in forum Programming
    Replies: 4
    Last Post: 03-15-2012, 01:10 PM
  5. Sort problem
    By Bear in forum Forms
    Replies: 1
    Last Post: 08-21-2011, 10:32 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