E eme126 Registered User. Local time Today, 09:39 Joined Jun 2, 2006 Messages 45 Aug 1, 2006 #1 It says that to get rid of a "type mismatch" error I should add the DAO.lib. But I already had it and I always got the error. Set oSQL = "SELECT * FROM TableInfo WHERE Caption Like '" & strTarget & "'* " The last ampersand is the type mismatch.
It says that to get rid of a "type mismatch" error I should add the DAO.lib. But I already had it and I always got the error. Set oSQL = "SELECT * FROM TableInfo WHERE Caption Like '" & strTarget & "'* " The last ampersand is the type mismatch.
E elbweb Self Taught Hero Local time Today, 12:39 Joined Jul 28, 2006 Messages 126 Aug 1, 2006 #2 the star/wildcard should be within the quotes, should it not? edit: clarification: it should be within the single quotes, i.e. : Code: strSQL = "SELECT * FROM tblSomething WHERE Field LIKE '" & strTemp & "*';" i think that would cause a type mismatch..
the star/wildcard should be within the quotes, should it not? edit: clarification: it should be within the single quotes, i.e. : Code: strSQL = "SELECT * FROM tblSomething WHERE Field LIKE '" & strTemp & "*';" i think that would cause a type mismatch..
E eme126 Registered User. Local time Today, 09:39 Joined Jun 2, 2006 Messages 45 Aug 1, 2006 #3 Thank you
E elbweb Self Taught Hero Local time Today, 12:39 Joined Jul 28, 2006 Messages 126 Aug 2, 2006 #4 your welcome