Connecting Tech Pros Worldwide Forums | Help | Site Map

Access-seaching multiple records in a field

Newbie
 
Join Date: Feb 2007
Posts: 2
#1: Feb 27 '07
I am trying to set up a search function in Access 2003. Basically I have a table with 3 fields, Sample (e.g "01"), Site (e.g. "457"), and Base (e.g. "A")

Expand|Select|Wrap|Line Numbers
  1. Sample       Site        Base
  2. 01              457            A
  3. 01              6579          G
  4. 01              7864          C
  5. 02              64              T
  6. 02              6579          G
  7. 02              16519        C
  8. etc...
I want to set up a query where the user can manually type in multiple sites and return the sample name that best fits/matches the search criteria. Not all samples will have the same number of 'sites'. I've tried a simple parameter value, but it only allows me to type in a single base, not multiple. I do have some experience with VBA so I could go that route if necessary.

If anyone has any help, I'd really appreciate it!

Rabbit's Avatar
Expert
 
Join Date: Jan 2007
Location: California
Posts: 3,835
#2: Feb 27 '07

re: Access-seaching multiple records in a field


Do you know if there's an upper limit on how many sites they can choose?
Newbie
 
Join Date: Feb 2007
Posts: 2
#3: Feb 27 '07

re: Access-seaching multiple records in a field


Quote:

Originally Posted by Rabbit

Do you know if there's an upper limit on how many sites they can choose?

No, not necessarily. Typically a sample could have anywhere from 10-60 sites.
Rabbit's Avatar
Expert
 
Join Date: Jan 2007
Location: California
Posts: 3,835
#4: Feb 27 '07

re: Access-seaching multiple records in a field


You'll have to go through code. If you need the query then you can change the query's SQL through code. It depends on what you want to do with that query.
Reply