473,509 Members | 4,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with Structuring a Combo Box Row Source

Sometime ago I had inserted two Combo Boxes on a form (cboCustomers)
and (cboVendors) to lookup values in separate tables. They have worked
fine except now I want to increase their usage by changing the Row
Source to include any changes made in the Customers and Vendors tables
to be reflected in the associated fields on the form (frmAccounts). An
example would be changing or correcting the spelling of a Customer or
Vendor name. Currently they have to be change manually on the
frmAccounts.

The Customer and Vendor tables only include an ID autonumber and the
name. I have done just about everything to get it to work correctly,
but with no success. Of course, when I have made the changes to the
Row Source it has blanked out all of the existing names in the fields
on the form. So I have reselected them several times and this is
becoming quite old fast. Further compunding the problem is that the
Vendors have a separate combo box on a Dialog form for selecting
individual ones for report output.

I have tried recreating the Combo Boxes with different selection
criteria, but the results were the same. The original Row Source for
the Vendors was:

SELECT DISTINCTROW tblVendors.Vendors FROM tblVendors. ORDER BY
tblVendors.Vendors

Row Source Type - Table/Query
Column Count - 1
Column Widths - 1.5"
Bound Column - 1

So I added the VenID to Select DistinctRow and added a WHERE clause
(that I must have changed a dozen times), and changed the Column Count
to 2, and 2 Column widths and Bound Column to 2 and then changed them
back to 1 and other combinations. Doesn't matter what I tried as the
resulting values in the control fields were always the Vendor ID
numbers which were of course populated in the once Vendor name fields
in the Table. The same result occurred when using the Vendor Dialog
Box as the Vendor name was no more, but instead the VenID numbers.
Worse, I could not change any of it back to its original state.

Any advice or suggestions to resolve this problem will be appreciated.
Thanks, Dalan
Nov 12 '05 #1
1 1584
When you save the VendID in the table you will see the VendID on the
form when you place a textbox bound to the field. What you can do is
hide this textbox and create a new unbound textbox and fill it with
the the name of the vendor. Make sure to refresh the unbound field
when the vendor changes.

If you want to save the name of the vendor in the table you can try to
create a relation between the tables with "Cascade update related
records" set. This way, whan the name of a vendor changes it will also
change in the corresponding records. This is a problem when you
currently have inconsistent names in the related tables.
Nov 12 '05 #2

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

Similar topics

5
2369
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To...
1
4138
by: Jeff Smith | last post by:
Hi This is a repost due to no responses Here's a problem I've encountered with Access 2003 which has got me to redesign how I get the row source in a second combo box using the first combo...
3
3624
by: hmiller | last post by:
Hey everyone, I am having a hell of a time trying to set this menu system up. Here's what I'm trying to do. Combo Box One; is populated by names under properties "row source" "Phase 1"...
2
1856
by: MLH | last post by:
I invoked the combo-box wizard today, telling it to use a 4-table union query as a row-source for the combo-box it was assisting me in building. The error I got was without number and stated,...
3
1381
by: Richard Ryerson | last post by:
I have a general DataGridComboBoxColumn that I built using the Example in the .NET 2003 Combined Collection help file (that was a data time picker). I am able to assign a data source and display...
4
64528
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
1
3087
by: lawton | last post by:
Source: this is an access 2003 question My knowledge level: reading books, internet, and trial & error; no formal training I'm trying to get a running sum of what's filtered in a subform which is...
2
3130
by: Sid | last post by:
I need some help in setting up Access combo box. I am using three comboboxes in my form. Comb Box 1, Combo Box 2, Combo Box 3. The row source for each of the combo box is a seperate table. ...
0
7237
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
7137
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...
1
7073
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...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.