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

ComboBox Problem- Try again

jdk
I have a main form where a students name is selected. After selected the
name- the subform populates all criteria related to the students program. I
have 3 combo boxes (Which choose a subject area- then a subheading under the
subject) in the subform that determine the data in the third combobox
listing.
The problem is that if I run the subform by itself, the combobox shows the
exact data that I want. However when I run the main form, I get an "Enter
Parameter Value" when a student is selected if data already exists in the
first two comboboxes.
If both combo boxes are blank- the message appears after clicking on the 2nd
combo box (strand)- requesting (Enter Parameter Value msg)
"Form!Fm_InputGoal!cboSubject". After entering data, and selecting an item
both Fm_InputGoal!cboSubject" and "Form!FmInputGoals!cboStrand" msgs pop
up. If I enter the parameters with appropriate data, all works well. But
that defeats the purpose of the comboboxes.

Any ideas of what is going on here?


Nov 12 '05 #1
1 1679
jdk
Figure it out

The error occurred in the SQL statement

SELECT [Field 1] From [Table name] Where ([Field1] =
[Forms!]!Subformname]![Combobox Name]...........

It works by deleting the [Forms!]!Subformname]![ ..........] and simply
leaving the Combobox name after the =s.

Thanks to all who looked at this.

Joe

"jdk" <tr*****@hotmail.com> wrote in message
news:Su*******************@fe3.columbus.rr.com...
I have a main form where a students name is selected. After selected the
name- the subform populates all criteria related to the students program. I have 3 combo boxes (Which choose a subject area- then a subheading under the subject) in the subform that determine the data in the third combobox
listing.
The problem is that if I run the subform by itself, the combobox shows the
exact data that I want. However when I run the main form, I get an "Enter Parameter Value" when a student is selected if data already exists in the
first two comboboxes.
If both combo boxes are blank- the message appears after clicking on the 2nd combo box (strand)- requesting (Enter Parameter Value msg)
"Form!Fm_InputGoal!cboSubject". After entering data, and selecting an item both Fm_InputGoal!cboSubject" and "Form!FmInputGoals!cboStrand" msgs pop
up. If I enter the parameters with appropriate data, all works well. But
that defeats the purpose of the comboboxes.

Any ideas of what is going on here?

Nov 12 '05 #2

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

Similar topics

4
by: Chandra | last post by:
Hello Sir, This is Chandra and Working as Software Engineer. I got a really weird problem with ComboBoxes. I have set the ComboBox DroppedDown Property to true. Now the actual problem is...
7
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: anonymous | last post by:
I've been trying to put a them, please help me out. Here's the major parts of my code: public Form1() { DataSet myDataSet = new DataSet("myDataSet"); DataTable testTable = new...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
0
by: tupolev | last post by:
Hi, I already post this item but now I know whats wrong: I want to allow the user to edit the items in a combobox. The problem is that the textchange event works just one time (for the first...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
5
by: Peter M. | last post by:
I'm struggling with combobox databinding with something I consider a bug... I'm binding my combobox to an array of structs. The struct exposes two public properties, ID and Name, to be used as...
1
by: amber | last post by:
I'm having an issue with a combobox that is making no sense to me at all. I have a form with several comboboxes/textboxes. The values in these boxes are based on a datarowview, which is based on...
1
by: Aleksey Timonin | last post by:
Hi guys, I have a comboBox binded to DataTable: comboBox.DataSource = MyDataTable; comboBox.ValueMember = "id"; comboBox.DisplayMember = "id";
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: 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:
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: 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
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
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
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,...

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.