Like clause used in query builder

F

Fuzuy

Hi,

a combo box value is used to a pop-up new open Form. Where in that
form a list box row source used that combo box value in query builder
as a creteria using LIKE Clause and is not working, anyone can point
out what should be a correct way to do it?

LIKE "*###*" -->where ### is the combo box value of an existing open
Form

SELECT dshet_apr.Number, dshet_apr.Title_Description
FROM dshet_apr INNER JOIN datasheet_d ON dshet_apr.Number =
datasheet_d.Number
WHERE (((dshet_apr.Title_Description) Like "* [Forms]![frmm]![combo1]
*") AND ((datasheet_d.Dis)=[Forms]![frmm]![combo46]));


Thanks for help.
 
D

Douglas J. Steele

WHERE (((dshet_apr.Title_Description) Like "*" & [Forms]![frmm]![combo1] &
"*") AND ((datasheet_d.Dis)=[Forms]![frmm]![combo46]));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top