Jump to content

To Db or Not To Db


Furgan

Recommended Posts

I am wanting to create a quick reference guide for people to find a part number for fast moving parts utilizing dropdown menus.  The first menu item will be by "model number". Most models (approximately 300 in all) will have one part number associated with each item (such as air filter, coil, gasket, etc.). There will be around 5% of these that may have 2 or 3 different part numbers that would be separated by a range of "type" numbers. An example would be model 60100, type #'s 0100 through 0650 would use one series of part numbers, then model 60100, tpe #0651 and above would use another series of part numbers.

 

With that in mind, the first dropdown menu would list all of the model numbers available. Upon choosing model 60100 the second dropdown list would show "Types 0100 through 0650" and "Types 0651 And Above". When choosing either item a list of part names and part numbers would populate in a table.

 

My series of questions: 1) Would this best be handled using a database or an array? 2) If a database, would a single table suffice or be better using multiple tables? 3) If an array would be best could someone point me to where I can learn about arrays and interfacing with them?

 

My database experience is mostly using MS Access and have toyed a little with Visual Basic.

 

Thanks in advance for the help.

Link to comment
Share on other sites

I'm kind of sleepy, so dont take my words as completly correct... it might not be :)

 

But, yes, a DB instead of an array.

 

And the DB, i' not sure i understood correctly the amount/relation of data, so i'll just trow some example:

 

id(model number?), name, type, associated_1, associated_2, some_other_data

 

So, 1 table should do it, as 300 isnt that mutch.

Link to comment
Share on other sites

  • 2 weeks later...

a database would be much easier. you can use multiple tables for each kind of part and store different models in them. then you can make a page to add,edit,or delete parts. its more professional and wastes less time. even if i didnt have access or knowledge of databases,i would still use a flat file db.but i dont recommend that.i would use mysql.the commands are very simple and its a great db.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.