Hello to all... I've been dabbling off and on with MS Access for a few years and am not - by far - a professional developer.
I have searched through the forums and did not find an answer to the following (basic) situation at work involving two tables in Access (2010 or 2013): Clients and Orders.
Each Client has a 1-n relationship to his orders. (no big surprise)
I need a form where the user can scroll through an editable client list which is easily done with a continuous form or subform. By Editable I mean that the user can directly edit some fields in the continuous form (like spelling errors on the client's name)
The problem is that I also need a field in the client continuous form that displays how many orders are associated to each client. Typically:
ID Client Orders
123 John Smith 50
124 Peter Jones 12
125 Mark Alder 04
Now I know I can display this data with an aggregate query....buuuuut... access tells me the query is "not updeatable" so my continuous form cannot be editable as needed.
I've also tried to play with aggregate functions to no avail....
The only workaround I found was to create a "orders" field in the client table and have VBA procedures update the count everytime an order is added or removed.... But that seems awfully complicated and messy.
I assume this must be a frequent need but haven't been able to find a satisfying answer :banghead:
Any insights greatly appreciated !!!!!!
I have searched through the forums and did not find an answer to the following (basic) situation at work involving two tables in Access (2010 or 2013): Clients and Orders.
Each Client has a 1-n relationship to his orders. (no big surprise)
I need a form where the user can scroll through an editable client list which is easily done with a continuous form or subform. By Editable I mean that the user can directly edit some fields in the continuous form (like spelling errors on the client's name)
The problem is that I also need a field in the client continuous form that displays how many orders are associated to each client. Typically:
ID Client Orders
123 John Smith 50
124 Peter Jones 12
125 Mark Alder 04
Now I know I can display this data with an aggregate query....buuuuut... access tells me the query is "not updeatable" so my continuous form cannot be editable as needed.
I've also tried to play with aggregate functions to no avail....
The only workaround I found was to create a "orders" field in the client table and have VBA procedures update the count everytime an order is added or removed.... But that seems awfully complicated and messy.
I assume this must be a frequent need but haven't been able to find a satisfying answer :banghead:
Any insights greatly appreciated !!!!!!