I use the wizard to create a combo box to locate records, the default coding is below
Private Sub Combo30_AfterUpdate()
‘ Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst “[Department] = ‘” & Me![Combo30] & “‘”
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
My problem is that one of the department’s name is Women’s Pavilion. You smart ones probably already see the problem. The combo box works on all other departments by not this one because of the ‘. I know it is that because I remove just the ‘s and it works properly. I figured I need more quotes but I haven’t figured it out. Any help would be appreciated. I can’t rename the department.
Thanks. Fay