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

Drop down list to select desired codes of a category

Islamzada
Dear Friends;
I have a problem in drop down list, well I have two tables which i want to prepare a store database.

I have two tables;

in table code below are introduced:
Consumption Group: Con-001
Con-002
Fixed groups : Fix-001
Fix-002
Raw materials : RAW-001
: RAW-002

in table M_Code below are introduced:
Categories: "Consumption" or "Fixed" or "Raw Material"
Code:Con-001 or fix-001
Name: book, note book or whatever
Description:

Note, I have introduced many codes for fixed, consumption and raw materials nearly 1000 code for each group.

Now what i want to do is, that in M_code table when I select any of three category the related codes which are belongs to that category appear.

Please help me.
Feb 13 '13 #1
3 1698
Seth Schrock
2,965 Expert 2GB
There are a few ways of doing this. Probably the easiest (and the most normalized) would be to have a third table that just has your different types of codes, Consumption, Fixed, and Raw. The table design would be something like
Expand|Select|Wrap|Line Numbers
  1. Name: tblCodeType
  2. Fields:
  3. TypeID, Primary Key, AutoNumber
  4. Type, Text
Your data would then be
Expand|Select|Wrap|Line Numbers
  1. 1     Comsuption
  2. 2     Fixed
  3. 3     Raw Material
You would then add a field to your table of codes so that each code could be categorized so that we could know which type of code it is. This will allow us to display only to codes which are of the type selected.

Now, what do you mean by appear? Do you want them in a subform, a combo box, or do you want a new form to open? Exactly how do you want them to appear?
Feb 13 '13 #2
zmbd
5,501 Expert Mod 4TB
Your database sounds like you're well on your way; however, I get the feeling from your post that you're still either unsure of your design, or that this may be one of the first database projects you've undertaken by yourself.

Therefore, before you get too much farther into the current development you really should take a look at the following: A Tutorial for Access as the these basics will be vital to saving you many tears and hours of "banging into the wall."

Database Normalization and Table Structures. is one of the hardest concepts for people to grasp when it comes to database design. We're so used to spreadsheets with flat-data that this just doesn't seem to make sense. Until you need to manipulate the data.

These links will help you ask much clearer questions and with your answers:

Posting Guidelines

How to ask good questions

FAQ

Before Posting (VBA or SQL) Code
Feb 13 '13 #3
NeoPa
32,556 Expert Mod 16PB
You may find looking at Cascaded Form Filtering will arm you with the tools you require to understand how to go about such a task.
Feb 15 '13 #4

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

Similar topics

2
by: carramba | last post by:
Hi! is it possible to change "selector" color in drop-down list? <select name="select" style="background-color: #ff0000"> <option style="background-color: #ff0000" value="1">Cony</option>...
4
by: Therese A. Sorna | last post by:
Hello all... I am using Access 2002, and am trying to find a way for a user to be able to select multiple entries from a drop-down list. I am hoping that given a list as such: a b c d
1
by: Cleus | last post by:
Is there a way to display read only values in a drop down listbox? Below is an example of what I need displayed in the drop down list. The users should only be able to select Item 1-9. Category A-C...
2
by: Rob Venable | last post by:
I've populated a drop down list from a sql query and the drop down list (select box) looks fine. The issue is... I need to show a blank entry at the top of the select box. In asp I would just add...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
6
by: Joey Liang via DotNetMonster.com | last post by:
Hi all, I have a drop down list which store all the different brands of product.When i selected the particular brand from the drop down list, it will display all the products with the selected...
2
by: newsgroups.jd | last post by:
Thanks for any advice, help in advance... I have 3 dropdownlist that populate based on choice in the previous (nested essentially) Problem is when I hit the back button and make a change in...
3
by: Yi Chen | last post by:
We have a drop down list on a PHP page, with several product names, and when people click one item, we will refresh the same page with the product name as parameter, and in turn we want to include...
2
by: NickMc71 | last post by:
Hello, I have the following JS code: function MM_load() { var x=document.getElementsByName("newDDL"); for(var i=0;i<=x.length-1;i=i+1) {
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.