473,408 Members | 2,477 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,408 software developers and data experts.

Need some input

1,892 Expert 1GB
I'm trying to get some input on the best way to handle a situation I have. I have a form with a series of comboboxes ( approx 13 ) called Part#, I would like to make a seperate table called TPartNumbers, however each of the 13 drop down boxes has around 2-4 options. Does anyone have a suggestion on how I should do this? I was thinking 1 table but I may have to do multiple; also, I have thought about a listbox so I can display all the options, however if they pick more than 1I'm not sure how I would handle the multiple entries. I have a ton of tables already about 20 I'm not sure that I want to add another 3 or 4 not to mention I would be making tables like ( eg.. TPartNumbers1to5 ), any ideas or suggestions I may not have thought about? Any input appreciated!
Thanks,
AC
Oct 27 '06 #1
5 1211
MMcCarthy
14,534 Expert Mod 8TB
DON'T make a new table

Making tables just to hold data is pointless unless there is a very good reason for it.

What do you want to do with this data?

I can tell you how to handle multiple list boxes but I need to know if all the data is the same and what it's for
Oct 28 '06 #2
AricC
1,892 Expert 1GB
Thanks,

It's basically a repair form, the problem I'm looking at is for part numbers for every different product there could be a different part #, so say one product has a bad part depending on the product the part number could be 1040 ( or 1111 ..... 1115 ) A,B,J,L,S, or ... whatever. So there are about 13 combo boxes ( In the approach DB they were in columns part1, part2, part3, ... , part 13 ) with the part #'s with anywhere from 1 to 4-5 values per combobox, that may need a letter appened to the end of the value in the combo box. I was going to use a list box but no way to add anything to the values.
Thanks,
Aric
Oct 28 '06 #3
MMcCarthy
14,534 Expert Mod 8TB
Thanks,

It's basically a repair form, the problem I'm looking at is for part numbers for every different product there could be a different part #, so say one product has a bad part depending on the product the part number could be 1040 ( or 1111 ..... 1115 ) A,B,J,L,S, or ... whatever. So there are about 13 combo boxes ( In the approach DB they were in columns part1, part2, part3, ... , part 13 ) with the part #'s with anywhere from 1 to 4-5 values per combobox, that may need a letter appened to the end of the value in the combo box. I was going to use a list box but no way to add anything to the values.
Thanks,
Aric
You can add to a list box:

For example:

Listbox called List1
Combobox called cboPart

To add an item to the list after selecting a value in cboPart put the following code in the On Click event of a command button cmdAddPart

Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub cmdAddPart_OnClick()
  3. Dim strList As String
  4.  
  5.   strList = Me.List1.RowSource
  6.   Me.List1.RowSource= strList & ";" & Me.cboPart
  7.  
  8. End Sub
  9.  
  10.  
If you need more than one column in the list box let me know exactly what you need and I'll post the code
Oct 28 '06 #4
AricC
1,892 Expert 1GB
I'll post the code so you have a better idea of what I'm talking about. I'll clean it up and pm it you can let me know what you think.
Appreciate the help!
Aric
Oct 28 '06 #5
MMcCarthy
14,534 Expert Mod 8TB
I'll post the code so you have a better idea of what I'm talking about. I'll clean it up and pm it you can let me know what you think.
Appreciate the help!
Aric
Just thinking Aric

If you want to associate quantity, qa# or any other field with the part then you can move the fields form tblRepairs and put them in tblRepairParts.

This will associate them with the repair and the part rather than just the repair. Adjust the forms accordingly.

i.e. Remove them from frmRepairs and add them to the subform.

Mary
Oct 30 '06 #6

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

Similar topics

1
by: David. E. Goble | last post by:
Hi all; I have the following files; index.html, sigsheader.js, sigsboby.js, smilesbody.js and smiles.js. The sourse is below. The page displays two manual slide shows... Each slideshow has a set...
7
by: David. E. Goble | last post by:
Hi all; I have the following files; index.html, sigsheader.js, sigsboby.js, smilesbody.js and smiles.js. The sourse is below. The page displays two manual slide shows... Each slideshow has a set...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
5
by: Witless | last post by:
This is 'supposed' to be a simple problem and shouldn't need too much time to solve :S Below is a function that works like this: int fn(int input) { int x=(input/8);
16
by: Basil Fawlty | last post by:
Hi everyone, I have an assignment, to create a simple VB program that computes the volume of a cylinder. The Form is pretty simple, it has a label and text box for base radius, another for height...
0
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional...
1
by: TopherB | last post by:
Hi, First let me say that my knowledge of HTML and Javascript is fairly limited. But I am stuck in a situation of trying to adapt a website's shopping cart to a new one. Here's the problem, the...
0
by: vidyamann | last post by:
Hello there, i have a problem with my php page. i have a form and different tabs on that. o the click of each tab, user will give his information in the text boxes. and for that i need a comman...
1
by: tikney5 | last post by:
I need to modify my current program so that is uses a class to store and retrieve the employees name, hourly rate, and number of hourse worked. Use a constructor to initialize the employee...
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.