CurrentDb.OpenRecordset("SELECT CompanyList.CompanyCode, CompanyList.REINSURER FROM CompanyList Where Reinsurer = '" & cmbReinsurerName & "'")
cmbReinsurerName = "Loyd's"
and it Kicks me out is there a way to define the variable within sql statement so it would give an error.
it works for all other inputs except for ' - single quatation mark.
Thank you.
cmbReinsurerName = "Loyd's"
and it Kicks me out is there a way to define the variable within sql statement so it would give an error.
it works for all other inputs except for ' - single quatation mark.
Thank you.