Unable to update records in a subform

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
73,431
Office Version
  1. 365
Platform
  1. Windows
I have a subform, that I am unable to update, and I think I know why, but don't know how to work around it.

The subform is based on a table and a query. They look like the following:

Table:
Plan Name (primary key)
Plan Type
Plan Contact

Query:
Plan Name (primary key)
Year (primary key)
Assets

They are linked together by Plan Name.

Now here is the problem. If the subfrom just pulls the information from the table, I am able to update the Plan Type and Plan Contact on the subform. However, once I link it to the query, I am unable to update any of the fields on this subform.

Now here is what I think the reasoning why is: The query is based on a table with the same records as shown in the query. The table has multiple records for each plan, for different years. Basically, what the query does is use the "Max" and "Last" Total Groupings to only return the most recent record for each plan.

I understand why I would be unable to update the fields from the query in the subform, but find it curious that I can no longer update the fields from the table above, like Plan Type and Plan Contact. Does linking it to the query essentially make all the fields on the subform unable to be updated? How do I get around this to allow users to update these two fields on the subform?

Thanks.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Never mind. I went a different route.
 
Upvote 0

Forum statistics

Threads
1,221,590
Messages
6,160,668
Members
451,662
Latest member
reelspike

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top