473,385 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Combo boxes dependent on other combo boxes

This is what I am using to filter my combo box based on what is selected in the previous box.

Open the properties for the second combo box. Next to the 'Row Source' property, click on the '...'.

This opens the query related to the combo box.

In the criteria row under the category field, type the following:

[Forms]![Form1]![Combo1]

Where Form1 is the name of the form containing the combo boxes.

And, Combo1 is the name of the first combo box you have just made.

Change these names to suit your own database.

Close and save the query.

What I have is a main form and on this form, I have a subform. If I use the above...[Forms]![Subform]![Combo37] and try this from the subform, it works as expected. But, if I open the main form and try to use it, soon as I click on the second combo box I get a popup box stating "Enter Parameter Value" and it lists [Forms]![Subform]![Combo37]. How do I get this to work on my main form?
Apr 3 '07 #1
5 3099
Rabbit
12,516 Expert Mod 8TB
To refer to a control on a subform you have to use:
Expand|Select|Wrap|Line Numbers
  1. [Forms]![Main Form]![Sub Form Control].Form.[Control Name]
Apr 3 '07 #2
I am still getting the same results. What part of this code do i have to change to the subform name?
Apr 3 '07 #3
Rabbit
12,516 Expert Mod 8TB
Let's make this clear.

On a form there are controls.
One such control is a subform object.
This object has a name and links another form that already exists.
This other form also has a name.
The name of the other form and the name of the subform object can be different.

So you want to use the subform control name and not the name of the other form when you're trying to refer to a control on a subform from the main form.
Apr 3 '07 #4
Ok, thanks. That did make it a lot clearer. I was having trouble with the [Sub Form Control]. It works now.
Apr 3 '07 #5
Rabbit
12,516 Expert Mod 8TB
Good Luck.
Apr 3 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: lorirobn | last post by:
Hi, I have a form with several combo boxes, continuous form format, with record source a query off an Item Table. The fields are Category, Subcategory, and Color. I am displaying descriptions,...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
2
by: visionstate | last post by:
Hi there, I am working on a form that uses 3 text boxes and 3 combo boxes. When any data is entered into any of these, I click a command button and this requeries a sub query in the form and...
4
by: Miguel | last post by:
I have an order entry database with two forms. One is for new orders the other is to update orders. The forms are identical except that one is strictly order entry. On both forms are three sets of...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
1
by: Dave | last post by:
Hello all, First I'd like to apologize...This post was meant to be put in my previous post, but I tried many times without success to reply within my previous post. Now here goes... I have a...
4
by: deanndra | last post by:
First, I want to say thank you to Scott and the others who replied to my first post here. I had to put that database on hold for the moment when I was tasked with a new one. I am building another...
11
by: seangibson | last post by:
Sorry, I've been posting alot of questions regarding cascaded combo boxes here but each time I solve one problem I seem to be faced with a new. This time here's the problem: I've got the combo...
2
by: SHAWTY721 | last post by:
I have a form that contains two combo boxes that are related to each other. I need to find a way to populate my text box based on the criteria of the two combo boxes so the appropriate number...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.