473,388 Members | 1,405 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,388 software developers and data experts.

Problem With Drop Down Lists On Continuous Subform

I've implemented the following successfully on a single form before,
but the continuous form is giving me problems.

I have 2 combo boxes, Combo 1 and Combo 2. The values in Combo 2 are
dependent on the value selected in Combo 1. I run the code:
Me.Combo2.Requery on the Combo 2 "On Enter" event to refresh the values
in Combo 2 to reflect the value chosen in Combo 1.

Everything works fine for the first record. However when I move to the
second and subsequent records the previously entered records in Combo 2
go blank when I move to Combo 2 in the current record.

Obviously the Requery is being applied to all records. How can I limit
it to the current record only?

Any help appreciated.

Nov 13 '05 #1
2 2265
You can't, but you can fake it.

Use an outer join to get the text value that the combo box displays, create a
text box bound to that field, make it locked/disabled, and place it over the
combo box, leaving just the drop-down button sticking out on the right. Place
a transparent button over the text box, set its Tab Stop property to no, and
create an Enter event for it that sets the focus to the combo box.

On 25 Feb 2005 22:53:51 -0800, "Wayne" <cq*******@volcanomail.com> wrote:
I've implemented the following successfully on a single form before,
but the continuous form is giving me problems.

I have 2 combo boxes, Combo 1 and Combo 2. The values in Combo 2 are
dependent on the value selected in Combo 1. I run the code:
Me.Combo2.Requery on the Combo 2 "On Enter" event to refresh the values
in Combo 2 to reflect the value chosen in Combo 1.

Everything works fine for the first record. However when I move to the
second and subsequent records the previously entered records in Combo 2
go blank when I move to Combo 2 in the current record.

Obviously the Requery is being applied to all records. How can I limit
it to the current record only?

Any help appreciated.


Nov 13 '05 #2
Thanks Steve.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: William Bradley | last post by:
I have a production table and its accompanying form. There can be up to ten ingredients in what is produced. The ingredients are obtained from the incoming goods table which supplies the two...
2
by: Lyn | last post by:
Hi, I am working on a genealogy project in which I have two tables: Person -- one record for each person in the family. Each record has a unique Autonum field (IDPerson). Partnerships -- one...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
5
by: keith | last post by:
This may seem simple, but I'm having a bit of trouble figuring out exactly how to do it. I'm accessing a database through an ODBC link, and I have a query that returns only jobs completed that day...
6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
3
by: Miguel Dias Moura | last post by:
Hello, i have an ASP.NET / VB page where i have a few 4 groups of Drop Down Lists. Each group of Drop Down Lists include 3 Drop Down Lists for date such as: DAY, MONTH, and YEAR. I don't want...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
1
by: kevinjouco | last post by:
Hello I Have established a form in the following manner: Table - "Supplier" - one field - Supplier - Listed Suppliers Used Table - "Supplier Updates" a number of fields including...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.