I have a table of Organizations. The primary key is the Organization Name. In a form I use an unbound combo box to look up the Organization Name. It works great unless there is an apostrophe in the organization name and then it gives me an error. Here is the code the Wizard generated:
rs.FindFirst "[Organization Name] = '" & Me![Combo56] & "'"
Does anyone see what the problem is? And, if it is part of the code, why was it generated as such?
Also, I know I should have used a autonumber as the primary key. Did this contribute to the problem?
Thanks
LeoDee
rs.FindFirst "[Organization Name] = '" & Me![Combo56] & "'"
Does anyone see what the problem is? And, if it is part of the code, why was it generated as such?
Also, I know I should have used a autonumber as the primary key. Did this contribute to the problem?
Thanks
LeoDee