MS Access query: why does LIKE behave differently when being called from VB6 app?

后端 未结 6 1368
春和景丽
春和景丽 2021-01-06 23:32

I don\'t do a lot of coding with VB6, but I\'m updating an existing app now and just encountered a snag.

I figured out the problem. In VB6, queries must use the

6条回答
  •  囚心锁ツ
    2021-01-07 00:23

    Access used to have its own incompatible version of SQL, so I think it uses the * for legacy reasons.

    When you use VB6 you usually use ODBC and a more standardized SQL, so the more common wildcards apply. Remember that VB6 doesn't care which DB you use, so if you used something else (e.g., SQL server) it would probably only understand the percentage signs.

    I am guessing that the Access-ODBC connector converts things for you.

提交回复
热议问题