M
mpfohl
I could use some help. I'm using MS Access 2003
Long story short, I would like to create a query that displays only
bills that were introduced and passed in less than 2 months (Passed
date - Introduced date = less than 2 months).
Here's the details:
I have a table with the following columns: Bill Name, Action, and Date.
For example:
AB1, Introduced, 1/5/06
AB2, Introduced, 1/5/06
AB1, Passed, 3/5/06
etc.
Thus, there can be multiple entries per each bill. There will at least
be an 'introduced' action, but not all bills also have a 'passed'
action. I realize it would be easier to just have one record per bill
and have one column say 'introduced date' and another column for
'passed date', but my current setup is what is necissary for the rest
of my relational database to work so I need to figure out how to work
with what I have.
As for how the query displays the results, I don't care if it would
display just one record per bill (just displaying AB1, indicating it
matches my criteria). Or, if it is easier, the query results could
stay in the table's format above by showing two records per one bill so
it would look like:
AB1, Introduced, 1/5/06
AB1, Passed, 3/5/06
I basically just want to filter out bills that did not get passed in
less than 2 months.
I hope that all makes sense, any ideas?
Long story short, I would like to create a query that displays only
bills that were introduced and passed in less than 2 months (Passed
date - Introduced date = less than 2 months).
Here's the details:
I have a table with the following columns: Bill Name, Action, and Date.
For example:
AB1, Introduced, 1/5/06
AB2, Introduced, 1/5/06
AB1, Passed, 3/5/06
etc.
Thus, there can be multiple entries per each bill. There will at least
be an 'introduced' action, but not all bills also have a 'passed'
action. I realize it would be easier to just have one record per bill
and have one column say 'introduced date' and another column for
'passed date', but my current setup is what is necissary for the rest
of my relational database to work so I need to figure out how to work
with what I have.
As for how the query displays the results, I don't care if it would
display just one record per bill (just displaying AB1, indicating it
matches my criteria). Or, if it is easier, the query results could
stay in the table's format above by showing two records per one bill so
it would look like:
AB1, Introduced, 1/5/06
AB1, Passed, 3/5/06
I basically just want to filter out bills that did not get passed in
less than 2 months.
I hope that all makes sense, any ideas?