Acces 2007和表达式构建器 [英] Acces 2007 and expression builder

查看:88
本文介绍了Acces 2007和表达式构建器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我在查询表达式构建器(条件字段)中的IF(IIf)语句有问题。

应该是这样的:

如果[Forms]![frmReportManager]![cmbAgentName] =""那么条件字段应该填[tblAgent]![AgentName]其他条件字段应该填[Forms]![frmReportManager]![cmbAgentName]。


我用Google搜索了将近2天现在,我无法解决它。也许它可以用VB做到这一点?


非常感谢你的帮助,

Artur

Hello,

I have a problem with IF(IIf) statement in query expression builder(criteria field).
It should be like :
If [Forms]![frmReportManager]![cmbAgentName] = "" then criteria field should be filled [tblAgent]![AgentName] else criteria field should be filled [Forms]![frmReportManager]![cmbAgentName].

I have googled almost 2 days for now and I cant sort it out. Maybe its possible to do it in VB?

Many thanks for your help,
Artur

推荐答案

你有没有这样试过?
Did you try it like this?
展开 | 选择 | Wrap | 行号


我无法输入,这会显示错误消息:表达式你enterned包含无效的语法。

您省略了操作数或运算符,输入了无效的字符或逗号,或者输入的文本没有用引号括起来。

单击确定后,逗号是从条件字段中选择的?

我应该做什么dirrerently?


谢谢,

Artur
I cant enter this, this displays error message: The expression you enterned contains invalid syntax.
You omitted an operand or operator, you entered an invalid character or comma, or you entered text without surrounding it in quotation marks.
After clicking OK, the comma is selecter from criteria field?
What should I do dirrerently?

Thanks,
Artur


什么是[tblAgent]![AgentName]应该是什么?
What is [tblAgent]![AgentName] supposed to be?


这篇关于Acces 2007和表达式构建器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆