繁体   English   中英

将文本框中的数据与 Unicode 表中的数据进行比较(VBA Access 2016)

[英]Comparing data in Textbox with data in a Table in unicode (VBA Access 2016)

当我在 vba access 2016 中使用if条件将文本框中的数据与表中的数据进行比较时遇到了一些问题。文本框和表中的数据不同,但条件为真。 有人有答案或可以向我解释我的问题吗? 提前谢谢你。

您可能需要使用StrComp函数进行比较:

Match = (StrComp(onestring, anotherstring, vbBinaryCompare) = 0)

或在查询中:

Match: StrComp([onefield], [anotherfield], 0) = 0

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM