H
HelenJ
I have a text box on a form where I intend the user to be able to type in eg
Sarah and retrieve from a list where sarah might be listed as Sarah or
sarah/works, or indeed accounts/sarah
(the list of names is an action list and is stored in a table)
My code reads:
strpartname = "[ActionName] Like "" *" & Me.PartName & "*"" "
DoCmd.OpenReport "ActionBySectionReport", acPreview, "", strpartname
But I get no results, yet if I query the table directly eg:
SELECT ActionBy.ActionName
FROM ActionBy
WHERE (((ActionBy.ActionName) Like "*Sarah*"));
then I get the records that I am expecting.
Any one able to help please?
Helen
Sarah and retrieve from a list where sarah might be listed as Sarah or
sarah/works, or indeed accounts/sarah
(the list of names is an action list and is stored in a table)
My code reads:
strpartname = "[ActionName] Like "" *" & Me.PartName & "*"" "
DoCmd.OpenReport "ActionBySectionReport", acPreview, "", strpartname
But I get no results, yet if I query the table directly eg:
SELECT ActionBy.ActionName
FROM ActionBy
WHERE (((ActionBy.ActionName) Like "*Sarah*"));
then I get the records that I am expecting.
Any one able to help please?
Helen