Select Records

S

shapper

Hello,

I have an Access Database Table with 2 fields:
1. ID
2. Name

I want to Select all the records which [Name] is contained in a
parameter which I pass in the following format:

"Name1,Name2,Name3,Name4"

Thanks,
Miguel
 
M

Marshall Barton

shapper said:
I have an Access Database Table with 2 fields:
1. ID
2. Name

I want to Select all the records which [Name] is contained in a
parameter which I pass in the following format:

"Name1,Name2,Name3,Name4"


Use a calculated field in the query:

InStr("," & parameter & ",", "," & [Name] & ",")

and set its criteria to:
 

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