query with multiple criteria prompts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I run a query, I need to be prompted to enter 2 different strings.

The field is 'Status' and I need to have it return all data containing 2
different strings. For example, records where 'status' contains "Microsoft"
and "6".

Any suggestions?

Thanks
 
When I run a query, I need to be prompted to enter 2 different strings.

The field is 'Status' and I need to have it return all data containing 2
different strings. For example, records where 'status' contains "Microsoft"
and "6".

Any suggestions?

Thanks

A criterion of

[STATUS] LIKE "*" & [Enter first string:] & "*" AND [STATUS] LIKE "*"
& [Enter second string:] & "*"

will work. Why does your Status field apparently violate atomicity by
containing both numbers and text, which are evidently separately
searchable? Might you not do better to have two fields?

John W. Vinson[MVP]
 

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

Back
Top