budgilbert67
asked on
MENU that gets values from two fields
Using dreamweaver MX can I have a menu that gets values from two fields in one table and insert them into two fields in another database? If so How?
table one: Fields: 'ID' and 'businessname'
table two: Fields: 'userid' and 'businessname'
table one: Fields: 'ID' and 'businessname'
table two: Fields: 'userid' and 'businessname'
ASKER
Thank you for you response jason1178
What I need is one menu that gets two field values and then on submit places the values into a new table to two fields
So if I select business name "sample contractor" from the menu, the menu gets both businessname field and the ID field. Then on submit it places the selected values into a new table to two fields named 'userid' and 'businessname'
I hope I have clearified my question
What I need is one menu that gets two field values and then on submit places the values into a new table to two fields
So if I select business name "sample contractor" from the menu, the menu gets both businessname field and the ID field. Then on submit it places the selected values into a new table to two fields named 'userid' and 'businessname'
I hope I have clearified my question
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Unless I am misunderstanding your question, you want a form with two pull-downs that write the selection to a third table?
This is pretty easy, but it can be made even easier if you only write the ID and userid to the third table. There really isn't a reason to also write businessname because you can always pull that value back out by using a select query and joining on the ID or userid column between table 3 and the other one.
You need to create two recordsets for table one and table two. Create a page with a form and two selects. Bind the first select to table one's recordset and set ID as the value and businessname as the label, do the same thing for the second select and table two's recordset.
Then create an Insert behavior for the form to table three. Bind ID and userid to the appropriate columns and you're done.
Let me know if my assumptions here are not correct.