davejackson
Technical User
I have a form with a header, details and 1 page of details with a subform. The record on the details/subform should be updated in 2 ways: Firstly by selecting the next/previous buttons and secondly by chosing a record from a combo box in the form header which contains three fields from a table (Client, City, ClientID). The key field (ClientID) is generated via an autonumber. Using the next/previous buttons works fine, but when I chose a record from the combo box, the key field in the ClientID text box is not updated using the code:
Me.City = Me.Client.Column(1)
Me.ClientID = Me.Client.Column(2) and I receive the error "You can't assign a value to this object". This also prevents me using the key field to retrieve the subform record.
As you can probably tell I am scrambling around as I am not very experienced so I would greatly appreciate any help that can be given.
Me.City = Me.Client.Column(1)
Me.ClientID = Me.Client.Column(2) and I receive the error "You can't assign a value to this object". This also prevents me using the key field to retrieve the subform record.
As you can probably tell I am scrambling around as I am not very experienced so I would greatly appreciate any help that can be given.