I have a list of records in a table (TBEvents) which hold the following fields.
EventDate
NewDate
ClientNumber
DaysTillReview
IsAReview
There can be many records with same ClientNumber.
I want to take the value written in the DaysTillReview field and write this into another field (MinDays) used on another table(TBClients ), however, only using the record from TBEvents using the minimum EventDate and where the ClientNumber is the same as the ClientNumber used in TBEvents and there is no NewDate and IsAReview is True. The fields in the Client table are amongst others:
ClientNumber (PK)
MinDays
So i need a way of writing TBEvents.DaysTi llReview into TBClients.MinDa ys where TBEvent.ClientN umber = TBClients.Clien tNumber And Min(TBEvent.Eve ntDate) And NewDate Is Null And IsAReview = True.
I assume that i need to incorporate all of this into a append query but i'm not sure on the correct syntax.
thanks.
EventDate
NewDate
ClientNumber
DaysTillReview
IsAReview
There can be many records with same ClientNumber.
I want to take the value written in the DaysTillReview field and write this into another field (MinDays) used on another table(TBClients ), however, only using the record from TBEvents using the minimum EventDate and where the ClientNumber is the same as the ClientNumber used in TBEvents and there is no NewDate and IsAReview is True. The fields in the Client table are amongst others:
ClientNumber (PK)
MinDays
So i need a way of writing TBEvents.DaysTi llReview into TBClients.MinDa ys where TBEvent.ClientN umber = TBClients.Clien tNumber And Min(TBEvent.Eve ntDate) And NewDate Is Null And IsAReview = True.
I assume that i need to incorporate all of this into a append query but i'm not sure on the correct syntax.
thanks.
Comment