Query Criteria syntax...

T

Trevor

I am trying to run a query based on the input of a text
box. The text box produces a value like "x10502".
However, in the table that I am querying, the value looks
like "c:\x10502.txt". How do I get the query criteria to
add the "c:\" and the ".txt" on to the beginning and end
to run the query correctly?

Any help is much appreciated.

Trevor
 
C

Cheryl

Have you tried adding those to your parameter that picks
up the text box? or maybe in another column, building an
expression that takes the text box data and adds to other
info, i.e, ="c:\" & [textbox] & ".txt"
Cheryl
 
V

Van T. Dinh

Try a criterion like:

...
WHERE YourTextField = "C:\" & Trim([Please enter name:]) & ".txt"
 

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