Access Question - Form based on Query that will not accept changes

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,338
Office Version
  1. 365
Platform
  1. Windows
I have a for that is based on a Query. I can make changes to the for fields and the table adjusts accordingly. Just as I want. But then I added a new table (second) to the query and linked the common field (joined). I added a new field to the query for the new table. When I run the query I get the right results. But when I go back to my form and try to change any of the data, it will not allow me to. Its like all the fields in the form a locked. The data is there, the records change as expected, but I cannot change the data any longer.

Any idea what I did wrong or how to fix it?

Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
The query provides you with a set of data called a recordset.
These can be editable and not editable - you ended up with the second one.

3 ways to solve this:
1. simplify the query - see which connection or field makes it not editable and remove it from the query if it's presence is not crucial
2. Make the form unbound - fill in the data by code, and then put the changes back in the tables by code (not always possible - only for simple forms - one record at a time)
3. use a temporary / intermediate table to put data in and then take it back - requires additional coding too.
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,039
Members
448,940
Latest member
mdusw

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