johnherrerajuan
Registered User.
- Local time
- Today, 05:27
- Joined
- Feb 25, 2013
- Messages
- 44
Hello
I have a form that is used for data entry; from there I want to create a new form where I can select a field from a combo box which would generate the amount associated.
Example on the first form it has a Carpenter that has a calculated output of $1000, on the second form I would want to click on the combo box and pick carpenter and I would like the calculated field to be shown next to it.
I tried making an if statement on an unbound box but I found it difficult
=IIf([Combo2]=Building Service Engineer, =[Forms]![Estimate]![Text787],IIf([Combo2]=Carpenter,=[Forms]![Estimate]![Text788],IIf([Combo2]=Custodian,=[Forms]![Estimate]![Text789],IIf([Combo2]=Custodian - Shift Pay (5am - 6am) ,=[Forms]![Estimate]![Text790],IIf([Combo2]=Drafting Technician,=[Forms]![Estimate]![Text791],IIf([Combo2]=Electrician,=[Forms]![Estimate]![Text792],IIf([Combo2]=Facilities Project Supervisor,=[Forms]![Estimate]![Text793],IIf([Combo2]=Fire Marshal,=[Forms]![Estimate]![Text794],IIf([Combo2]=Gardening Specialist,=[Forms]![Estimate]![Text795],IIf([Combo2]=Grounds Worker,=[Forms]![Estimate]![Text796],IIf([Combo2]=Interior Design,=[Forms]![Estimate]![Text797],IIf([Combo2]=Irrigation Specialist,=[Forms]![Estimate]![Text798],IIf([Combo2]=Laborer,=[Forms]![Estimate]![Text799],IIf([Combo2]=Lead Auto/Equip Mechanic,=[Forms]![Estimate]![Text800],IIf([Combo2]=Lead Custodian,=[Forms]![Estimate]![Text801],IIf([Combo2]=Lead Grounds Worker,=[Forms]![Estimate]![Text802],IIf([Combo2]=Light Auto/Equip Operator,=[Forms]![Estimate]![Text803],IIf([Combo2]=Locksmith,=[Forms]![Estimate]![Text804],IIf([Combo2]=Maintenance Mechanic,=[Forms]![Estimate]![Text805],IIf([Combo2]=Painter,=[Forms]![Estimate]![Text806],IIf([Combo2]=Pest Control Specialist,=[Forms]![Estimate]![Text805],IIf([Combo2]=Plumber,=[Forms]![Estimate]![Text805],IIf([Combo2]=Recycler (Laborer) ,=[Forms]![Estimate]![Text805],IIf([Combo2]=Refrigeration Mechanic,=[Forms]![Estimate]![Text805],IIf([Combo2]=Supervising Building Service Engineer)))))))))))))))))))))))))
[Text787]-[Text805] are fields from the first form, these are calculated fields that multiplies wages quantity etc.
Also [Combo2] wont let me pick any data that I typed in
I have a form that is used for data entry; from there I want to create a new form where I can select a field from a combo box which would generate the amount associated.
Example on the first form it has a Carpenter that has a calculated output of $1000, on the second form I would want to click on the combo box and pick carpenter and I would like the calculated field to be shown next to it.
I tried making an if statement on an unbound box but I found it difficult
=IIf([Combo2]=Building Service Engineer, =[Forms]![Estimate]![Text787],IIf([Combo2]=Carpenter,=[Forms]![Estimate]![Text788],IIf([Combo2]=Custodian,=[Forms]![Estimate]![Text789],IIf([Combo2]=Custodian - Shift Pay (5am - 6am) ,=[Forms]![Estimate]![Text790],IIf([Combo2]=Drafting Technician,=[Forms]![Estimate]![Text791],IIf([Combo2]=Electrician,=[Forms]![Estimate]![Text792],IIf([Combo2]=Facilities Project Supervisor,=[Forms]![Estimate]![Text793],IIf([Combo2]=Fire Marshal,=[Forms]![Estimate]![Text794],IIf([Combo2]=Gardening Specialist,=[Forms]![Estimate]![Text795],IIf([Combo2]=Grounds Worker,=[Forms]![Estimate]![Text796],IIf([Combo2]=Interior Design,=[Forms]![Estimate]![Text797],IIf([Combo2]=Irrigation Specialist,=[Forms]![Estimate]![Text798],IIf([Combo2]=Laborer,=[Forms]![Estimate]![Text799],IIf([Combo2]=Lead Auto/Equip Mechanic,=[Forms]![Estimate]![Text800],IIf([Combo2]=Lead Custodian,=[Forms]![Estimate]![Text801],IIf([Combo2]=Lead Grounds Worker,=[Forms]![Estimate]![Text802],IIf([Combo2]=Light Auto/Equip Operator,=[Forms]![Estimate]![Text803],IIf([Combo2]=Locksmith,=[Forms]![Estimate]![Text804],IIf([Combo2]=Maintenance Mechanic,=[Forms]![Estimate]![Text805],IIf([Combo2]=Painter,=[Forms]![Estimate]![Text806],IIf([Combo2]=Pest Control Specialist,=[Forms]![Estimate]![Text805],IIf([Combo2]=Plumber,=[Forms]![Estimate]![Text805],IIf([Combo2]=Recycler (Laborer) ,=[Forms]![Estimate]![Text805],IIf([Combo2]=Refrigeration Mechanic,=[Forms]![Estimate]![Text805],IIf([Combo2]=Supervising Building Service Engineer)))))))))))))))))))))))))
[Text787]-[Text805] are fields from the first form, these are calculated fields that multiplies wages quantity etc.
Also [Combo2] wont let me pick any data that I typed in