I have been asking this question in another forum but unfortunately didn't get proper reply.
If anyone can help here would be great.
I have form called EndofSerivce_Form on this form i have combobox called Emp_IDCombo i am pulling many employee records from different tables and queries using Dlookup but i struct with one text box on this form which is [housingtxt] in this text box i need to pull information from table and use it based on IIF condition.
Let me tell you clearly.
Emp_IDcombo is employee ID once i select any Employee ID the remaining fields of my text boxes on form is changing the information automatically based on that selection it pull the information from Employees_table but i am trying to take information of that employee housing from Contract_table's [Housing] because employees_table is having personal records of employee and not contractual records, so if that employee doesnt have housing than it should [basic] from contracts_table x 2 /12 if in case that employee is having housing amount in contracts_table [Housing] then it should show the same value.
row source of my form is SELECT [Employees_table].[Emp_ID], [Employees_table].[EmployeeName] FROM Employees_table;
Please help with expression,code anything that can help me to solve.
If anyone can help here would be great.
I have form called EndofSerivce_Form on this form i have combobox called Emp_IDCombo i am pulling many employee records from different tables and queries using Dlookup but i struct with one text box on this form which is [housingtxt] in this text box i need to pull information from table and use it based on IIF condition.
Let me tell you clearly.
Emp_IDcombo is employee ID once i select any Employee ID the remaining fields of my text boxes on form is changing the information automatically based on that selection it pull the information from Employees_table but i am trying to take information of that employee housing from Contract_table's [Housing] because employees_table is having personal records of employee and not contractual records, so if that employee doesnt have housing than it should [basic] from contracts_table x 2 /12 if in case that employee is having housing amount in contracts_table [Housing] then it should show the same value.
row source of my form is SELECT [Employees_table].[Emp_ID], [Employees_table].[EmployeeName] FROM Employees_table;
Please help with expression,code anything that can help me to solve.