Question : MS ACCESS CODE PROBLEM - Can't assign a value to this object

I am getting the above error.
All I am trying to do is to assign field [CalcTotalChargeBacks] on a form  to a control bound to a table [TotalChargebacks]. But I get this error "Can't assign a value to this object" Both controls are on the same main form. I have been at this for hours. What the hell is up with this? Is should be simple as pie. I am new too MS Access but have been progamming for years, and I cannot figure this out. HELP !
Private Sub Form_Close()
Forms![Chargeback Maint]![TotalChargebacks] = Forms![Chargeback Maint]![CalcTotalChargeBacks]
End Sub

Answer : MS ACCESS CODE PROBLEM - Can't assign a value to this object

re:> irstly, the settings i have on the field are enabled=No ; locked=yes.

Then try:

    me![TotalChargebacks].Enabled = True
    me![TotalChargebacks].SetFocus
    me![TotalChargebacks] = me![CalcTotalChargeBacks]
    me![TotalChargebacks].Enabled = False

It will make enable it for a split second and disable it right away. This should take care of the proplrm.
===================
re:> thanks for pursuing this for me.

It wasn't very much fun I was having the same problem. I would like someelse dosen't

brb

Random Solutions  
 
programming4us programming4us