选择功能 [英] Choose Function

查看:70
本文介绍了选择功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用选择功能将查询中字段的条件设置为

为Is Null吗?或不是空基于表格上的选项组

的值?如:

选择(Forms!MyForm!MyOptionGroup,Null,is not Null)

其中MyOptionGroup的值可以是1或2.


谢谢!

Can the Choose function be used to set the criteria for a field in a query
to either "Is Null" or "Is Not Null" based on the value of an option Group
on a form? Such as:
Choose(Forms!MyForm!MyOptionGroup,Is Null,Is Not Null)
Where MyOptionGroup can have the value of 1 or 2.

Thanks!

推荐答案

不,不能。你将不得不以另一种方式设置你的查询。


-

Doug Steele,Microsoft Access MVP
http://I.Am/DougSteele

(请不要发电子邮件! )

史蒂夫 <否**** @ Spam.Com>在消息中写道

news:v8 ************** @ newsread3.news.pas.earthlink .net ...
No it can''t. You''ll have to set your query up another way.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Steve" <No****@Spam.Com> wrote in message
news:v8**************@newsread3.news.pas.earthlink .net...
Can Choose函数用于将查询中字段的条件设置为Is Null和Is Null。或不是空基于表格上的选项组
的价值?如:
选择(表单!MyForm!MyOptionGroup,是空的,不是空的)
MyOptionGroup的值可以是1或2.

谢谢!
Can the Choose function be used to set the criteria for a field in a query
to either "Is Null" or "Is Not Null" based on the value of an option Group
on a form? Such as:
Choose(Forms!MyForm!MyOptionGroup,Is Null,Is Not Null)
Where MyOptionGroup can have the value of 1 or 2.

Thanks!



谢谢,道格!


我可以在下面获得Is Not Null部分但不能得到Is Null

部分。你有什么想法吗?


选择(表格!MyForm!MyOptionGroup,Null,[MyField])


Steve

" Douglas J Steele" < NOSPAM_djsteele@NOSPAM_canada.com>在消息中写道

新闻:e3 ************* @ TK2MSFTNGP02.phx.gbl ...
Thanks, Doug!

I can get the Is Not Null part in the below but can not get the Is Null
part. Do you have any ideas?

Choose(Forms!MyForm!MyOptionGroup,Is Null,[MyField])

Steve
"Douglas J Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:e3*************@TK2MSFTNGP02.phx.gbl...
不,它不能。你将不得不以另一种方式设置你的查询。

- 道格斯蒂尔,Microsoft Access MVP
http://I.Am/DougSteele
(请不要发电子邮件!)

史蒂夫 ; <否**** @ Spam.Com>在消息中写道
新闻:v8 ************** @ newsread3.news.pas.earthlink .net ...
No it can''t. You''ll have to set your query up another way.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Steve" <No****@Spam.Com> wrote in message
news:v8**************@newsread3.news.pas.earthlink .net...
选择功能是否可以用于将
查询中字段的条件设置为Is Null。或不是空基于表格上的选项
组的价值?如:
选择(表单!MyForm!MyOptionGroup,是空的,不是空的)
MyOptionGroup的值可以是1或2.

谢谢!
Can the Choose function be used to set the criteria for a field in a
query
to either "Is Null" or "Is Not Null" based on the value of an option
Group
on a form? Such as:
Choose(Forms!MyForm!MyOptionGroup,Is Null,Is Not Null)
Where MyOptionGroup can have the value of 1 or 2.

Thanks!




" PC数据表" <否**** @ Spam.Com>在消息中写道

news:7i **************** @ newsread2.news.pas.earthli nk.net ...
"PC Datasheet" <No****@Spam.Com> wrote in message
news:7i****************@newsread2.news.pas.earthli nk.net...

我可以在下面找到Is Not Null部分,但不能得到Is Null
部分。你有什么想法吗?

选择(表格!MyForm!MyOptionGroup,Is Null,[MyField])
Thanks, Doug!

I can get the Is Not Null part in the below but can not get the Is Null
part. Do you have any ideas?

Choose(Forms!MyForm!MyOptionGroup,Is Null,[MyField])




没有在下面的仅是Null中不是空的部分。究竟是什么

你想要实现?当MyOptionGroup

= 1时,你试图返回Null吗?当MyOptionGroup = 2时你想要什么MyField?


基思。
www.keithwilby.com


这篇关于选择功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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