dragonmanUSMC
IS-IT--Management
- Dec 10, 2004
- 31
I am having great difficulty retrieving data from records that are selected via a drop down list.
I am going to try and explain the relationships that I have in this DB.
First we are talking about data in two tables
1. Order Details
2. Products
Second we have two forms and two subforms
Forms
1. Order Details
2. Products
Subforms
1. Order Details Subform
2. Products Subform
I am trying to autofill an unbound field named QtyOnHand that resides in the Order Details Subform. When the user selects the Product in the Order Details Subform via a drop down list various info will autofill correctly. Price, Sales Price, etc... However the QtyOnHand Field displays ?NAME but the QtyOnHand field in the Products form displays correctly.?
To properly understand what is happening I need to explain what I did on the Products Form and Products Subform. On the Products form the QtyOnHand field (unbound) is getting its value based off of a calculation that is being calc. in the Products Subform.
I have two fields in the Products Subform named UnitsOrdered and UnitsSold using those two fields and the data they contain I have an unbound field 'QtyOnHand=Sum(nz([UnitsReceived])-nz([UnitsSold]))'
Only the Form Products is displaying the QtyOnHand=[Products Subform].[Form]![UnitsOnHand] correctly I need help getting this data to display in my Order Details Subform. Any help will be graciously accepted!
I am going to try and explain the relationships that I have in this DB.
First we are talking about data in two tables
1. Order Details
2. Products
Second we have two forms and two subforms
Forms
1. Order Details
2. Products
Subforms
1. Order Details Subform
2. Products Subform
I am trying to autofill an unbound field named QtyOnHand that resides in the Order Details Subform. When the user selects the Product in the Order Details Subform via a drop down list various info will autofill correctly. Price, Sales Price, etc... However the QtyOnHand Field displays ?NAME but the QtyOnHand field in the Products form displays correctly.?
To properly understand what is happening I need to explain what I did on the Products Form and Products Subform. On the Products form the QtyOnHand field (unbound) is getting its value based off of a calculation that is being calc. in the Products Subform.
I have two fields in the Products Subform named UnitsOrdered and UnitsSold using those two fields and the data they contain I have an unbound field 'QtyOnHand=Sum(nz([UnitsReceived])-nz([UnitsSold]))'
Only the Form Products is displaying the QtyOnHand=[Products Subform].[Form]![UnitsOnHand] correctly I need help getting this data to display in my Order Details Subform. Any help will be graciously accepted!