473,499 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Synchronized Combo Boxes - Maintaining combo box values in a datasheet form

1 New Member
I have an access database to manage inventory we receive. We receive many similar products from different suppliers. I have a form set up database style to receive the different products including the categories of "Supplier" and "Product". I currently have the ROWSOURCE of the Product to be limited to suppliers that match the supplier selected on the form. It works just fine. However, as I move to the next record and put in a new supplier, the previous record's product goes blank (obviously be I changed the supplier value). Is there a way fix this?
May 13 '14 #1
1 1122
zmbd
5,501 Recognized Expert Moderator Expert
kassondrajane
You really haven't provided us with enough detail of your database design to really help.

I can make some guesses based on past experience and similar issues from other members.

First thing to do:
Check that the control size is actually large enough to show the value of the field(s)

The next easiest, shut down everything and COLDBOOT the PC. If this is merely a display issue this will often fix things.

However,
Usually this has to do with how your CONTROL SOURCE and ROW SOURCE properties are setup - these two, although related, are vastly different in their usage.

I think first you should read thru:
> Database Normalization and Table Structures.

DO you have more than one table?
If not, you're most likely not normalized and a normalized database will make setting up the combo/list-box a breeze!

So, how I would do this in my DB, a quick outline follows:

1) In all of my tables, I use the autonumber datatype as my primary key (PK) within the table. It is usually best practice to never use a PK that has any meaning. I also do not rely on the autonumber to give me sequential (serial numbers or check numbers) results - I have a function for that.

tbl_suppliers
This is the table that has nothing except the supplier specific information... think address book.
I even go so far in my database to split out the supplier contact from this table as the sales rep will be promoted, transferred etc... I do not put the products here.

tbl_products
This table has the product details, think of it as an address book for the product. So name, part/catalog number, etc...
it also has a foreign key (FK) that relates the product to the supplier
([tbl_suppliers]![PK] - 1 : M - [tbl_products]![FK_Suppliers])

And so forth... as I mentioned pulling my supplier contact out into their own table... you can do the same with your products table, say colours, fragrance, fabrics... the list is endless. The idea is that it takes less space to store numbers than text and searching on a number is faster.

So now for the inventory.
IF you are tracking serial numbered items then you have an entry for each actual asset (6 items, 6 records) because you need to track the serial numbers Otherwise this can be a very simple table that simply has the product, and the on hand count:
tbl_inventory
([tbl_products]![PK] - 1 : M - [tbl_inventory]![FK_Products])
you might also keep the pricing information here, the products table, or indeed a separate table just depends on your particular needs.

tbl_invoice
depending on your design, this would be related to either the inventory table (due to serial numbers) or to the product table and ideally a customer table (might be able to recycle the suppliers table to handle this (^_^) )
This would be where you would track your actual sales of what products and to whom they were sold. Because this would be a history table, certain calculated values might be stored here.


Now, lets go back to the tbl_products:
In the form for this table, the row source for a combo/list-box on the form that would be used to record which supplier would be set to the tbl_suppliers with the bound column set to the [tbl_suppliers]![PK] and the control source set to the [tbl_products]![FK_Suppliers])

Similar idea with tbl_invoice and other tables with relationships.
May 14 '14 #2

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

Similar topics

1
2653
by: Paolo | last post by:
I would like some help on the use of combo boxes. I have created a form and named it Customers. This form's record source is a table, also named Customer. I would now like to add an unbound combo...
3
3551
by: Kent Eilers | last post by:
I want to follow naming conventions for my controls - i usually prefix combo boxes with "cbo". When a form is in datasheet view however i do not want the user to see the 'cbo' prefix in front of...
1
2386
by: MrPaulC | last post by:
Hey, I wonder if anyone can possibly help me with this problem. I'm really struggling with it. Ok, I have a form with a childform inside it which is in datasheet view, this form has two combo...
4
1963
by: Miguel | last post by:
I have synchronized combo boxes linking Account Type with Customer Names based on the template that Microsoft has in one of its samples databases. There are the appropriate relationships between...
7
1819
by: badboybrown | last post by:
I know that this is an age old question and it has been approached a few times, but I've hit a wall and require some help. I have various combo boxes that contain values that are both "current"...
2
1605
by: Ausclad | last post by:
How Would you implement this? I have an existing Access application that needs to be converted to .net I am restricted to use the existing database design. One of the areas is a timesheet...
2
4252
by: ddog | last post by:
I have a form with 3 text fields (one of which is a zip code) and 5 combo boxes. The combo boxes are all set with the first value as 'selected' when the page is first displayed. The 3 text fields...
4
1590
WyvsEyeView
by: WyvsEyeView | last post by:
I have a datasheet form in which one field is a combo box that will potentially contain hundreds of records. I've read about several methods of speeding up such combo boxes or limiting their initial...
3
1500
by: dblack64 | last post by:
I am working in Access 2007. I have a form named Master Terms List that contains 4 bound text boxes and 7 cascading combo boxes. The bound text boxes have data sources from a table named Termslist. ...
1
2211
by: Yasmeen Pannu | last post by:
HI, I am new to MS Access and stuck in a problem from few days. My Question: I have 3 combo box (Submitter, date from and date to) on my form and i want that when i select values from each of...
0
7134
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
7014
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
6905
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
5485
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
4921
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
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
311
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.