UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Sub Form - Field Cannot Be Updated Error    
 
   
skg0509
post Mar 28 2012, 09:42 AM
Post #1

UtterAccess Member
Posts: 40
From: Wiltshire



Hi Guys

Access 2010

I have a simple sub form that lists a payment plan for the client. The sub form record source is based on saved query and contains the following fields...


pmtID Autonumber
pmtOrderID Foreign key
pmtDateDue
pmtAmountDue
pmtDatePaid
pmtAmountPaid
OSBal - Calculated field in query [pmtAmountDue] - [pmtAmountPaid]

However every time a user enters a new record they get an error message "field cannot be updated". if the user presses ok they can continue to enter the new record, however this is not ideal.

By removing the calculated field OSBal from the query everything works fine. With the calculated field i have tried the following without any luck....

Compacting
Decompile
Being in as only user on system

I have seen a number of posts here about this but no solution and would be nice to show the os balance for each line.

Can anyone help please?

Thanks

Steve


Go to the top of the page
 
+
theDBguy
post Mar 28 2012, 09:44 AM
Post #2

Access Wiki and Forums Moderator
Posts: 48,113
From: SoCal, USA



Hi Steve,

Just a guess but see if the calculated field is on the top of the Tab Order.

Just my 2 cents... (IMG:style_emoticons/default/2cents.gif)
Go to the top of the page
 
+
skg0509
post Mar 28 2012, 09:47 AM
Post #3

UtterAccess Member
Posts: 40
From: Wiltshire



Thanks DG Guy

Umm no in the query its the last field and on the sub form its the last field tab wise and locked / set to no tab

Cheers

Steve
Go to the top of the page
 
+
theDBguy
post Mar 28 2012, 10:12 AM
Post #4

Access Wiki and Forums Moderator
Posts: 48,113
From: SoCal, USA



Hi,

I took a shot... Thanks for checking.

It might help if you could post a zip copy of your db with test data.

Just my 2 cents... (IMG:style_emoticons/default/2cents.gif)
Go to the top of the page
 
+
missinglinq
post Mar 28 2012, 10:35 AM
Post #5

UtterAccess Ruler
Posts: 2,669



What happens if you open the Query independent of the Form? Can you add new/edit existing Records?

Linq ;0)>
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 05:37 PM