I am having a problem with a MSSql statement containing the condition Like. I am using this statement within Access 2000 VBA. I cannot seem to get the syntax correct. It goes like this:
SQLa = "Select PartNo from parameters where PartNo Like #*"
SQLa = "Select PartNo from parameters where PartNo Like '#*'"
SQLa = "Select PartNo from parameters where PartNo Like (#*)"
SQLa = "Select PartNo from parameters where PartNo Like "#*""
None of which are working. Any Ideas, Thanks.
SQLa = "Select PartNo from parameters where PartNo Like #*"
SQLa = "Select PartNo from parameters where PartNo Like '#*'"
SQLa = "Select PartNo from parameters where PartNo Like (#*)"
SQLa = "Select PartNo from parameters where PartNo Like "#*""
None of which are working. Any Ideas, Thanks.