L
looking
Hi,
I'm unable to pass the wildcard charachter to a DoCmd.OpenReport
statement and hope that this forum can provide some pointers.
I use statement
strDocWhere = "[StoreValue]=Forms![frmMyForm]![MyField]"
in a
DoCmd.OpenReport strDocName, acViewPreview, , strDocWhere
for a report based on a field. It works for an exact match.
A message box shows
[StoreValue]=Forms![frmMyForm]![MyField]
An access property sheet shows the filter value(for this eg,) as
((StoreValue="t0731"))
I'm trying to write code that will change the filter, to expand it
from a single value to one more inclusive one but I am unable to code
it. I hope to pass this to the form:
((StoreTee Like "**t0731**"))
all the best.
I'm unable to pass the wildcard charachter to a DoCmd.OpenReport
statement and hope that this forum can provide some pointers.
I use statement
strDocWhere = "[StoreValue]=Forms![frmMyForm]![MyField]"
in a
DoCmd.OpenReport strDocName, acViewPreview, , strDocWhere
for a report based on a field. It works for an exact match.
A message box shows
[StoreValue]=Forms![frmMyForm]![MyField]
An access property sheet shows the filter value(for this eg,) as
((StoreValue="t0731"))
I'm trying to write code that will change the filter, to expand it
from a single value to one more inclusive one but I am unable to code
it. I hope to pass this to the form:
((StoreTee Like "**t0731**"))
all the best.