Is it possible to program the Control Source of a form textbox to display a corresponding value from a table or query that is not included in the Form's recordsource and is dependant upon values in a couple of the form's other controls?
My current form is based upon a query of two tables to display project data (tblONE) and contract data (tblTWO).
I have a third table with unique pricing that changes each year for each contract. The pricing table is linked to the contract table in a many (pricing) to one (contract) relationship.
I'm now wanting to only display the appropriate pricing on my main project form based upon the year and contract# fields in the current record.
I've tried some IIF statements like: =IIf([Year]=[tblTHREE]![Year] And [CLIN]=[tblTHREE]![CLINID],[tblTHREE]![Rate],"N/A")
but I get an error as soon as I attempt to run the form at my FormLoad statment: DoCmd.GoToRecord acDataForm, "frmEDITWA", acNewRec
My current form is based upon a query of two tables to display project data (tblONE) and contract data (tblTWO).
I have a third table with unique pricing that changes each year for each contract. The pricing table is linked to the contract table in a many (pricing) to one (contract) relationship.
I'm now wanting to only display the appropriate pricing on my main project form based upon the year and contract# fields in the current record.
I've tried some IIF statements like: =IIf([Year]=[tblTHREE]![Year] And [CLIN]=[tblTHREE]![CLINID],[tblTHREE]![Rate],"N/A")
but I get an error as soon as I attempt to run the form at my FormLoad statment: DoCmd.GoToRecord acDataForm, "frmEDITWA", acNewRec