S
Shemp
I really need some help on this, please. I need to be able to use
dropdown that links to a database, and based on the selection ID, I
want to update values in two adjacent fields.
Here's how to set it up:
1 - Create a database in Access (or however you want) with just three
fields: Part No., Description, and UnitPrice. Give it some values, so
it looks like this:
PartNo Description UnitPrice
1001 WidgetA 100
1002 WidgetB 200
1003 WidgetC 300
Save it and export to XML.
2 - Create a blank new form with a Repeating Table containing 3
columns. Name the three textboxes txtPartNo, ddnDescription, and
txtUnitPrice, respectively.
3 - Change the middle textbox to a dropdown, and point its data source
to the XML table you created in 1.
So far, so good. What I want to do is be able to change the
description in ddnDescription and have txtPartNo and txtUnitPrice
change along with it. I can get the UnitPrice to work but not the
PartNo as well. Can anyone help?
If you want to see more of what I am doing, add a Quantity column and
an Extended Price column as well. The math is fairly easy on that, but
making the other three fields synch up is confusing to me.
If you would like me to email you with a small sample page that
illustrates this, get back with me at Gmail. Thanks!
dropdown that links to a database, and based on the selection ID, I
want to update values in two adjacent fields.
Here's how to set it up:
1 - Create a database in Access (or however you want) with just three
fields: Part No., Description, and UnitPrice. Give it some values, so
it looks like this:
PartNo Description UnitPrice
1001 WidgetA 100
1002 WidgetB 200
1003 WidgetC 300
Save it and export to XML.
2 - Create a blank new form with a Repeating Table containing 3
columns. Name the three textboxes txtPartNo, ddnDescription, and
txtUnitPrice, respectively.
3 - Change the middle textbox to a dropdown, and point its data source
to the XML table you created in 1.
So far, so good. What I want to do is be able to change the
description in ddnDescription and have txtPartNo and txtUnitPrice
change along with it. I can get the UnitPrice to work but not the
PartNo as well. Can anyone help?
If you want to see more of what I am doing, add a Quantity column and
an Extended Price column as well. The math is fairly easy on that, but
making the other three fields synch up is confusing to me.
If you would like me to email you with a small sample page that
illustrates this, get back with me at Gmail. Thanks!