How to write Case Sensitive Query for MS Access?

后端 未结 5 1374
耶瑟儿~
耶瑟儿~ 2020-12-03 22:49

I want to know the Select Query for MS Access with case sensitive.

I have two values for VitualMonitorName as below

VCode VirtualMonitorName
Row 1 (1         


        
5条回答
  •  北海茫月
    2020-12-03 23:04

    Using at a simpler level of coding.

    As a condition in a DCOUNT operation, checking on a Field (Column) that has to have the correct Case, and ignoring Blank States/Territories.

          '  lngcounter will count the all States 
          ' or Territories Field ( Column) with this 
          ' exact case value of 'Ohio'. ([ID] is an Autonumber ID field)
    
          lngCounter = DCount("[id]", Trim(Me!tboDwellingTablename), "[State/territory],'Ohio',0) = 0")
    

提交回复
热议问题