G
Gridrunner
I am trying to find a work-around for the read-only problem when a query has
a Group By clause in it. I am working in Access 2007. Here is a summary of
what I am doing:
I receive orders from my clients that contain personal data about people.
Often a given order is for multiple people. I have a form that displays
summary data for a specific order, and only lists the name of the first
person on the order. I also have a table that keeps track of various
"milestone" events for each order, such as when the order was received, when
it was completed, etc. Each of these events sets the order status to a
particular value, and my summary table displays only the current status. The
query I use is based on a number of preliminary queries in order to assure
that I only receive the data I want and not a line for each combination of
name and event for an order. To achieve this, two of my precursor queries use
Group By functions (First() for the name, and Last() for the event). I then
use this information to pull together my sumary data. The query directly
behind the form does not use any Group By functions itself, but this does not
prevent the read-only problem.
I think I have a solution to this this would use VB. I am proficient in VB,
so this would not present a problem. However, the solution seems very klunky
and inefficient. Does anyone have a better solution?
a Group By clause in it. I am working in Access 2007. Here is a summary of
what I am doing:
I receive orders from my clients that contain personal data about people.
Often a given order is for multiple people. I have a form that displays
summary data for a specific order, and only lists the name of the first
person on the order. I also have a table that keeps track of various
"milestone" events for each order, such as when the order was received, when
it was completed, etc. Each of these events sets the order status to a
particular value, and my summary table displays only the current status. The
query I use is based on a number of preliminary queries in order to assure
that I only receive the data I want and not a line for each combination of
name and event for an order. To achieve this, two of my precursor queries use
Group By functions (First() for the name, and Last() for the event). I then
use this information to pull together my sumary data. The query directly
behind the form does not use any Group By functions itself, but this does not
prevent the read-only problem.
I think I have a solution to this this would use VB. I am proficient in VB,
so this would not present a problem. However, the solution seems very klunky
and inefficient. Does anyone have a better solution?