Pardon my stupidity...
I am having some novice trouble with two tables:
Clients table:
ID, Name,..., Status (Active or suspended)
The key is the ID which is an autonumber.
Payments Table:
ID, Date, Membership,NextPaymentDay,Amount
The key is ID, Date, Membership
I need to update the Status of the client to active with an action query if NextPaymentDay<Date(). To do this I made a query to get the max date for every client.
Having this query joined with the client table on an update query using ID for the join creates a not updatable query.
I would appreciate if someone can guide me in the right direction, cause I may have to make a temporal table with status data and then udate the status on the client table.
Thanks
PD, I crated referential integrity on the relationships with cascade updates...(fyi)
I am having some novice trouble with two tables:
Clients table:
ID, Name,..., Status (Active or suspended)
The key is the ID which is an autonumber.
Payments Table:
ID, Date, Membership,NextPaymentDay,Amount
The key is ID, Date, Membership
I need to update the Status of the client to active with an action query if NextPaymentDay<Date(). To do this I made a query to get the max date for every client.
Having this query joined with the client table on an update query using ID for the join creates a not updatable query.
I would appreciate if someone can guide me in the right direction, cause I may have to make a temporal table with status data and then udate the status on the client table.
Thanks
PD, I crated referential integrity on the relationships with cascade updates...(fyi)