Hi mbrady1973,
To implement the formula defined by Jimmy please do the following:
Configure the drop down list:
[1] Right mouse click on your dropdownlist and choose Drop-Down List Box Properties
[2] In the Drop-Down Properties dialog box, under List box entries select Look up values from an external data source.
[3] In the Drop-Down Properties dialog box, select your sql data source
[4] In the Drop-Down Properties dialog box, click on the button next to Entries, and select the folder where your data is stored
[5] In the Drop-Down Properties dialog box, click on the button next to Value, and select the ID column
[6] In the Drop-Down Properties dialog box, click on the button next to Display name, and select the Facility column
[7] Click OK on all dialog boxes.
Configure the expression box:
[8] Add an expression box to the design area
[9] You will notice that the Insert Expression Box dialog box appears
[10] In the Insert Expression Box dialog box, click on the fx button.
[11] In the Insert Formula dialog box, enter the formula as defined by jimmy*
[12] Click OK on all dialog boxes
[13] Test your form
* In the formula:
- Replace the first occurance of TestTable1 with the name of your sql data source, this name can be found in the DataSource Task Pane
- Replace the second occurance of TestTable1 with the name of the reapiting field in the sql datasource, this is the same as what you selected in the Entries field, in the drop down properties
- Replace the @ID with the ID Column in your sql data source this can be done by clicking on the Insert Field or Group button in the Insert fomula dialog box
- Replace the field1 in /my:myFields/my:field1 with the name of the drop down list field.
- Replace the @Cost with the Cost Column in your sql data source this can be done by clicking on the Insert Field or Group button in the Insert fomula dialog box
Hope this helps