Ok will do, any suggestion for a suitable title?
I have one more problem, guess no need to open another thread will just include it in the title because its similar.
Everything is same just this time in the form employees I have a subform which contains the CompanyID (So no more CompanyID in Employees). I cant figure it out, I get again the error to enter parameter values and when I enter the CompanyID values it shows the correct results for that CompanyID.
Code:
DoCmd.OpenForm "frmEmployees", , , "Forms!frmEmployees.sbfWorkplace.Form.CompanyID=' " & Forms!frmMain.cboCompanyID & " '"
Code:
DoCmd.OpenForm "frmEmployees", , , Forms!frmEmployees.sbfWorkplace.Form = "CompanyID=' " & Forms!frmMain.cboCompanyID & " '"