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

Combobox not working properly when moved to a tabcontrol page

Hi,
I have a main form with 3 subforms and some combo boxes. It is working fine as an independent form. However, when I draged into a tabcontrol page, two off the combo boxes stopped working properly. The filtering criteria I used stopped functioning. Here are some details about my problem:

(1) the following 1 main form and 3 off subforms are all in one-to-many relationships.

Main form: mfrmCustomer
Subform1: sfrmSite
Subform2: sfrmMeter
Subform3: sfrmMeterReading

(2) three combo boxes:

Combo box1: tarketmeteidcontrol source: =[Form]!sfrmMeterReading.Form!Meter_ID
Combo box2: txtStartReadingDateTime Row source: SELECT StartReadingDateTime, Reading, Meter_ID
FROM tblMeterReading
WHERE (((tblMeterReading.Meter_ID)=[forms]![mfrmCustomer].[tarketmeterID]));
Combo box3: txtEndReadingDateTime Row source: SELECT EndReadingDateTime, Reading, Meter_ID
FROM tblMeterReading
WHERE (((tblMeterReading.Meter_ID)=[forms]![mfrmCustomer].[tarketmeterID]));

No problem with combo box 1, I can see field [tarketmeterid] is responding but the second and third combo box always ask for a value for "[forms]![mfrmCustomer].[tarketmeterID]". Anything I need to change when moving combo box /main/subform into a tabcontrol?

Many thanks for your help in advance!
Nov 26 '09 #1
1 3003
Hi I have sorted out the problem. Where am I wrong is that I need to add the main form (i.e. the form holding the tabcontrol pages) into the filter condition when moving into a tabcontrol, like: forms!tabcotrolform!mfrmcustomer!tarketmeterID.

Cheers.
Nov 26 '09 #2

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

Similar topics

9
by: Programatix | last post by:
Hi, I'm having problem with ComboBox. I'm trying to force the ComboBox select nothing by doing this, myCombo.SelectedText = "" myCombo.SelectedIndex = -1 but in vain, as the ComboBox will...
3
by: Andrew | last post by:
I'm having a major problem with a databound listbox in C#. In the constructor for the form I am trying to pre-select some of the items based in information in the database. When I step through the...
0
by: CalPARK InterNetStation | last post by:
Could anyone explain why the difference of behavior betweein Case1 and Case2 occurs? Microsoft Visual C#.NET 55607-652-0000007-18218 Windows Forms Application 1. put a TabControl on a Form...
1
by: Prem S | last post by:
Hi All I have a databound ComboBox control which is put into the second page of a tab control. When the form loads up, I databind the combo control and populate the control. When I go to...
0
by: Ken Arway | last post by:
Using .Net framework 1.1 I've got a Windows Forms application with a tab control having four tab pages. TabPage4 contains a Combobox and a TextBox, which are bound to the same XML file as a...
8
by: Gregory A Greenman | last post by:
I have a minor, but somewhat frustrating, problem. In a program I'm working on, I've got a tabcontrol that contains several other controls, a few of which are comboboxes. In the IDE, one of the...
0
by: Louise Harris | last post by:
I have a combobox on a tabcontol that needs to be populated when another control on the tabcontrol changes. I am using a dataset and dataadapter to load the combobox, but no data appears in the...
0
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number...
1
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I generally work on web apps, but I am dealing with a Winform right now and may be missing something really basic. I have a combobox and I would like to know what value has been selected....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.