473,394 Members | 2,168 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,394 software developers and data experts.

Limit values in dropdown box in form field2 based on value entered in form field1

3
Hi all,

New to the forum and have a problem in an Access db I'm working on.
Basically, it is a booking system for various dates (field2) at various venues (field1)- only certain dates are available at certain venues.
I have designed a 'booking' form in access that populates the 'Bookings' table with the data entered in this form.
A simple query on table 'Venues' (which is already populated) provides the basis for the combobox for field1.
A 'Tour_dates' query on table 'Tour-Dates' (which is already populated) provides the basis for the combobox for field1.
I want field2's combobox only to show the dates that are available for the venue entered in field1 on the form.
I actually have it working, but....if the user were to go back and change their choice of venue in field1, the dates for their original venue choice continue to appear in field2's combobox.
How can I get field2's combobox to show the dates for the user's revised choice of venue, i.e. re-run the Tour_dates query for the revised choice of venue - without closing the form and starting again?

Thanks in advance
Nov 25 '15 #1
5 915
zmbd
5,501 Expert Mod 4TB
1st - Welcome!

Just to sum things up, this sounds very similar to the cascading comboboxes discussed in the following:
home > topics > microsoft access / vba > insights > cascading combo/list boxes

Read thru the aforementioned article. If there is something specific there that you don't "get," or, if I'm not on the right track here, please post it back to this thread and we'll go from there!

(there's also a link to Filtering on a form in the article that you might want to toss in your "toolbox" for later use :) )
Nov 25 '15 #2
OBTech
3
Thank you zmdb,both for the welcome and the help!

I have recreated the cascading comboboxes as suggested and it works. However, if I am to use the chosen data from these 'unbound' comboboxes to populate another table, how could I do that? To continue to use the example, let's say we want a 'Bookings' system for a communal meeting room in the building that the companies occupy. The 'Bookings' table has three columns - Booking_ID (autonumber), company_Id and employee_Eid.
How can I populate the 'Bookings' table with a form using the cascading comboboxes bound to this table?

Thanks again.
Nov 30 '15 #3
NeoPa
32,556 Expert Mod 16PB
Hi OBTech.
First let me point you to another article with a similar topic. You probably won't need it as it overlaps with the one ZMBD posted already but they aren't exactly the same so it may help further your understanding.

As for your new question, that is something that I'll give a tip on, but that's all in here. If you need to develop that further then you'll need to ask the question in a separate thread. Each thread should only deal with one topic here.

The tip is simply to take the values from any of the ComboBox filters that have been selected and add them into the .DefaultValue properties of the bound controls on the form where you want to set this data. Although this isn't explained very fully in the linked article, it is covered.
Dec 1 '15 #4
OBTech
3
Thank you for reply NeoPa.

And this other article you refer to is .....where?

With all due respect, this is not a 'new' question but rather is related to my OP in which I say I have designed a 'booking' form in access that populates the 'Bookings' table with the data entered in this form.
The previous mod ZMBD has suggested cascading combos, and this has brought me part of the way.
As invited by him please post it back to this thread and we'll go from there!, this is exactly what I have done.

I'll wait for his assistance, but in the meantime, the link to your article would be appreciated.

Thanks
Dec 1 '15 #5
NeoPa
32,556 Expert Mod 16PB
OBTech:
And this other article you refer to is .....where?
Good question. It was supposed to be included within my last post. Here it is now (Cascaded Form Filtering).
OBTech:
With all due respect, this is not a 'new' question but rather is related to my OP in which I say ...
That's as may be, and I'm more than happy that you hold that opinion. Nevertheless, I see no reason to change my mind on the status of the extra question or how appropriate it is for this thread.

To ensure you get the current interest of all members already subscribed to this thread, you're welcome to post a link in here to your new thread if you choose to pursue that avenue. I'm sure everyone involved will be happy to follow the link and do what they can to help with your new thread.
Dec 1 '15 #6

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

Similar topics

3
by: Micromanaged | last post by:
Is it possible (and if so, how?) to have an asp form page that based upon a user's selection on a field, would generate a input field b that the user selects? For example: User selects "name"...
7
by: Randell D. | last post by:
Folks, I am working on a contact db using PHP and MySQL. My results so far outputs a slimed down version of records to the browser. I would like to implement a method whereby the user can...
4
by: Sen | last post by:
This is the Javascript function: function auto_submit(form_name, value) { document.form_name.elements.click(); } This is the XHTML: <select name="category"...
2
by: Danny Stolle | last post by:
Hi all, i can't figure this one out. from a main window i am opening another window with a form in it. this form has an inputbox. from the main window i want to write a value into this inputbox....
1
by: Marcus Vinícius | last post by:
Good morning I have a form in c# (windows form) where the user select the his state. This string was put in a public field and a property check it (GET/SET). When the user click in OK button in...
11
by: joey.powell | last post by:
Hello, I have a windows forms application (VS2005) where I need to do the following... 1. Startup with a main form. 2. Have the user to select a file and then bring up a second form modally...
4
by: Angel | last post by:
I have an html form with checkboxes in different rows. The functionality is that of changing the position of the checkboxes through DOM. When I try to save the form after the changes, firefox...
13
by: =?Utf-8?B?RG9uYWxkIEZpc2hlcg==?= | last post by:
Hello. I'm trying to capture a controls value: a dropdown box with two selections (either "Red" or "Blue") keeps returning the value "Red" even if "Blue" is selected?
5
by: hrreece | last post by:
I have a form, Master List Temp, in Access 2003 that uses the Dlookup command to pull values from another table, Address Master. The user types in a person's home phone number in the HomePhone field...
6
by: BEETHOVEN | last post by:
I have an option group called Issue_Type on my main form F1_Member_Demographics_Main. When I select one of the 3 options on the main form from the option group Issue_Type I want to limit the sub...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.