Results 1 to 2 of 2
  1. #1
    b82726272 is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2014
    Posts
    21

    Partition with Access SQL

    Hi,

    I was wondering if I can use the partition function with Access SQL for a string? The string consists of numbers and plus and minus symbols (for example 6, 7+, 7-). That is the reason it is a string. Now I want to order them in certain categories. I have converted the string to an integer, either I still get the following error: Data type mismatch in criteria expression. Below the code I have used. Thank you for the help.

    Kind regards,

    Bas

    SELECT Abs(CInt(Nz([KLANT_NUMBER], 0))), DISTINCTROW Partition([KLANT_NUMBER],0, 500, 50) AS Range, Count(KLANT_NUMBER) AS Count


    FROM KLANT
    GROUP BY Partition([KLANT_NUMBER],0,500,50);

  2. #2
    b82726272 is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2014
    Posts
    21
    The problem has been solved. I had a string value in my data, after the conversion.

    Kind regards,

    Bas

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

Similar Threads

  1. Replicating ROW_NUMBER OVER (PARTITION BY...)
    By normanj in forum Queries
    Replies: 2
    Last Post: 11-27-2012, 07:36 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