D
Dave
Hi folks,
I'm fairly new to the ASP/SQL arena and need a hand wrapping my mind around
something. First allow me to paint you a picture:
I'm developing an ASP page (not .net) for inventory management.
At the moment I have 2 tables.
1) ProductTable has the following columns: ID, Part, Description, Price and
Manufacturer (INT value)
2) ManufacturerTable: ID (key to manufacturer above), ManuName
I have a form in which a user enters information on a new product and on
this form I have a drop down list which is populated via the ManuName table
which displays all available manufacturers from the
manufacturertable.manufacturer column.
What I want is that when a user hits submit, it saves the info to the
producttable and takes the corresponding integer from the
ManuName that the user selects and places it in the
ProductTable.Manufacturer value along with the rest of the info. I'm unsure
of how to capture the corresponding integer value based on the Manufacturer
Name (which is a text value) and send it to the ASP file doing the actual
insert. Can anyone lend a hand?
Thanks,
Dave
I'm fairly new to the ASP/SQL arena and need a hand wrapping my mind around
something. First allow me to paint you a picture:
I'm developing an ASP page (not .net) for inventory management.
At the moment I have 2 tables.
1) ProductTable has the following columns: ID, Part, Description, Price and
Manufacturer (INT value)
2) ManufacturerTable: ID (key to manufacturer above), ManuName
I have a form in which a user enters information on a new product and on
this form I have a drop down list which is populated via the ManuName table
which displays all available manufacturers from the
manufacturertable.manufacturer column.
What I want is that when a user hits submit, it saves the info to the
producttable and takes the corresponding integer from the
ManuName that the user selects and places it in the
ProductTable.Manufacturer value along with the rest of the info. I'm unsure
of how to capture the corresponding integer value based on the Manufacturer
Name (which is a text value) and send it to the ASP file doing the actual
insert. Can anyone lend a hand?
Thanks,
Dave