DCOUNT 函数有关问题
DCOUNT 函数问题C# codeDCOUNT(g_id,guest,g_id&g_id&and (shenheY))guest 是表提示错误是:
DCOUNT 函数问题
C# codeDCOUNT('g_id','guest','g_id<='&g_id&'and (shenhe='Y')')
guest 是表
提示错误是: 语法错误 操作符丢失
大神们 看看怎么改
[解决办法]这个看着比较奇怪
'g_id<='&g_id&'and (shenhe='Y')'
Y是变量还是literal?
要改成
'g_id<='&g_id&' and (shenhe=' &Y &')'
或者
'g_id<='&g_id&' and (shenhe=''Y'')'
吧
[解决办法]'g_id<=''' &g_id& ''' and ( shenhe=''' Y ''')'