Results 1 to 2 of 2
  1. #1
    VLPOTTER is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Location
    Doral, FL
    Posts
    1

    Case Sensitive Data

    I am playing around with polygenic genotypes that are cae sensitive, for example: AABBCCDD, AaBbCcDd, AAbbCCdd, etc. Each distinct genotype will have different manifestations for the carriers of those genotypes. I wanted to get the unique set of the data by grouping them in a query, but Access does not take the case sensitivity of the data into account. Is there a way to do this in Access?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    Use a function that converts strings to hex and group on the hex value. Review https://support.microsoft.com/en-us/...rs=en-us&ad=us
    Here's the function in case the link dies:
    Code:
    Function StrToHex (S As Variant) As Variant
    '
    ' Converts a string to a series of hexadecimal digits.
    ' For example, StrToHex(Chr(9) & "A~") returns 09417E.
    '
       Dim Temp As String, I As Integer
          If VarType(S) <> 8 Then
             StrToHex = S
          Else
             Temp = ""
          For I = 1 To Len(S)
             Temp = Temp & Format(Hex(Asc(Mid(S, I, 1))), "00")
          Next I
             StrToHex = Temp
          End If
    End Function
    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.

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

Similar Threads

  1. Case sensitive login
    By CHEECO in forum Access
    Replies: 7
    Last Post: 02-09-2018, 11:43 AM
  2. Case sensitive query
    By Panzerattack in forum Queries
    Replies: 3
    Last Post: 02-11-2017, 12:15 PM
  3. Case Sensitive Inner Join
    By Rriemer in forum Queries
    Replies: 3
    Last Post: 10-13-2015, 01:24 PM
  4. Textbox Case Sensitive
    By cbrsix in forum Programming
    Replies: 19
    Last Post: 06-25-2012, 10:52 AM
  5. is access case-sensitive?
    By pen in forum Programming
    Replies: 1
    Last Post: 04-07-2009, 05:13 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