G
Guest
Hi
This should be easy but I'm not having much success.
I have a table with the following fields
ServiceID
CustomerID
ServiceDate
ServiceType (Values are either: NEW, New Family Member or Return/Follow up)
I want to set the service type to New for the record having the earliest
date for each customer, and to Return/followup for all other dates.
I'm trying to use the query design grid and using the min function in the
totals row of ServiceDate but this will only identify the first service if I
don't add either the ServiceType or ServiceID fields to the grid.
If I could identify the ServiceID of the first service for each customer,
then I could use that query in another query to update the ServiceType by
joining on ServiceID.
I'm sorry for the simplicity of this request. I'm sure it is dead easy
using SQL. Any help would be much appreciated.
Anna
This should be easy but I'm not having much success.
I have a table with the following fields
ServiceID
CustomerID
ServiceDate
ServiceType (Values are either: NEW, New Family Member or Return/Follow up)
I want to set the service type to New for the record having the earliest
date for each customer, and to Return/followup for all other dates.
I'm trying to use the query design grid and using the min function in the
totals row of ServiceDate but this will only identify the first service if I
don't add either the ServiceType or ServiceID fields to the grid.
If I could identify the ServiceID of the first service for each customer,
then I could use that query in another query to update the ServiceType by
joining on ServiceID.
I'm sorry for the simplicity of this request. I'm sure it is dead easy
using SQL. Any help would be much appreciated.
Anna