Redian新闻
>
Access 编程急问!!小问题一个
avatar
Access 编程急问!!小问题一个# Database - 数据库
l*u
1
mstrSQL = "SELECT * FROM Household Where " _
& "Group like '*" & DoubleQuote(Me![cboSelect]) & "*'" _
& "AND Interest like '*" & DoubleQuote(Me![ComboSelect2]
) & "*'"
table: Household
想实现从table household 选出所有records, household.group 等于 组合框 cboselec
的等于零值,household.interest 等于组合框架comboSelect2的值.上面
上面那个执行不通,对VB的语法不熟,大家给看看哪写错了.
avatar
a*t
2
I haven't done VB in a while, it's hard for me to decode this into pure SQL
if you just print out mstrSQL, what is the sql statement? does the statement
itself run ok?

_
ComboSelect2]
cboselec

【在 l********u 的大作中提到】
: mstrSQL = "SELECT * FROM Household Where " _
: & "Group like '*" & DoubleQuote(Me![cboSelect]) & "*'" _
: & "AND Interest like '*" & DoubleQuote(Me![ComboSelect2]
: ) & "*'"
: table: Household
: 想实现从table household 选出所有records, household.group 等于 组合框 cboselec
: 的等于零值,household.interest 等于组合框架comboSelect2的值.上面
: 上面那个执行不通,对VB的语法不熟,大家给看看哪写错了.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。