问题解决,代码如下:ACCESS中不支持区分大小写
Dim cmd As New OleDbCommand("Select Count(*) from 用户 where not strcomp(用户名,'" & UserName & "',0) and not strcomp(密码,'" & Pwd & "',0)", myconn)
alter table aa alter column cName varchar(20) collate Chinese_PRC_CS_AS_WS
select * from aa where cName='bb'
alter table aa alter column cName varchar(20)