尝试使用SELECT CASE进行多项选择.. [英] Trying to use SELECT CASE for multiple selections..

查看:180
本文介绍了尝试使用SELECT CASE进行多项选择..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Access 2003中,在一个简单的表单上,我试图将组合框的记录源基于另外两个组合框的数据。


这是代码我''尝试了它并没有用(除了PN交叉/信息)。


组合框名称是:产品类型,组合33和问题,其中问题是应该填充的内容在产品类型和Combo33中选择的是什么。

In access 2003, on a simple form, I am trying to base the recordsource of a combobox on two other combobox''s data.

Here is the code I''ve tried and it did not work (except for the PN Cross/Info).

The Combo boxes names are: Product Type, Combo33 and Issue, where Issue is what should populate based on what is chosen in Product Type and Combo33.

展开 | 选择 | Wrap | 行号

推荐答案

而不是使用AND尝试使用逗号

Instead of using AND try using a comma

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号


Echidna,感谢您的提示。我尝试了,但没有任何东西填充在组合框中问题??

我从产品类型的下拉列表中选择了一些东西。和Combo33和Combo33。当我点击问题的下拉箭头时,它下方会显示一个空白框(好像什么也没找到)。

可能是我在Combo33中这样做了'' s AfterUpdate ??
Echidna, thanks for the tip. I tried it, but nothing populates in combobox "Issue"??
I select something from the dropdown in "Product Type" and "Combo33" and when I click the dropdown arrow for "Issue", a blank white box displays below it (as if it found nothing).
Could it be that I''m doing this in Combo33''s AfterUpdate??





表tbl1TS中有什么内容吗?


也是在问题组合框中指定的列中tbl1TS中的列数相同吗?


你也可以尝试在select语句后在组合框中抛出一个requery。
Hi,

Is there anything within table tbl1TS?

Also are the number of columns within tbl1TS identical within those specified in the Issue combobox?

also you could try throwing a requery at the combobox after the select statement.


这篇关于尝试使用SELECT CASE进行多项选择..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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