M
Molly
I have a table with the following fields: RecordID (the
Primary Key field, autonumber format), Date (defaults to
today's date in the absence of user input, date/time
format), and TrapID. The TrapID field receives its data
from a multiple selection list box I set up in a form.
This list box allows multiple values to be selected and
then saved as ONE record in my table. These multiple
values are stored as a semicolon-separated list. If you
need the explicit details on the code I used to create
such a list box and table, please see Knowledge Base
Access Article #140483.
Unfortunately, I need to be able to sort on any individual
value stored in the TrapID field. Here are a couple sample
records from my table:
RecordID: Date: TrapID:
1 11/3/03 100; 104; 105
2 11/5/03 103; 109; 122
3 11/6/03 100; 107; 110
So in other words, I need to create a query which tells me
what dates correspond to the trap ID I input as critera (I
enter 100 as criteria, the query should return records 1
and 3; I enter 109, it returns record 2).
I know it's possible to do this sort of thing, I just
can't seem to find out how. I'm pretty much a beginner at
Access, so any help (in easy to understand terms!!) would
be greatly appreciated. I hope I've been clear about all
my definitions and explanations of how my tables are set
up, but please ask me if you're unsure exactly what I'm
trying to do.
Many thanks in advance.
Primary Key field, autonumber format), Date (defaults to
today's date in the absence of user input, date/time
format), and TrapID. The TrapID field receives its data
from a multiple selection list box I set up in a form.
This list box allows multiple values to be selected and
then saved as ONE record in my table. These multiple
values are stored as a semicolon-separated list. If you
need the explicit details on the code I used to create
such a list box and table, please see Knowledge Base
Access Article #140483.
Unfortunately, I need to be able to sort on any individual
value stored in the TrapID field. Here are a couple sample
records from my table:
RecordID: Date: TrapID:
1 11/3/03 100; 104; 105
2 11/5/03 103; 109; 122
3 11/6/03 100; 107; 110
So in other words, I need to create a query which tells me
what dates correspond to the trap ID I input as critera (I
enter 100 as criteria, the query should return records 1
and 3; I enter 109, it returns record 2).
I know it's possible to do this sort of thing, I just
can't seem to find out how. I'm pretty much a beginner at
Access, so any help (in easy to understand terms!!) would
be greatly appreciated. I hope I've been clear about all
my definitions and explanations of how my tables are set
up, but please ask me if you're unsure exactly what I'm
trying to do.
Many thanks in advance.