Reputation: 7792
I have setup a textbox in a form in Access. The form is linked to a table. But the textbox it self is unbound, it is used to simply gather user input. However, I can't edit the value went it's viewed.
The textbox is not locked. The textbox can be set value in VBA. Textbox have no ControlSource. I can edit it in DesignView.
Any ideas?
Upvotes: 6
Views: 20334
Reputation: 1440
I had this problem when looking at the Form in 'Layout view'. When in 'Form View' of 'Datasheet View' the text box can be edited
Upvotes: 0
Reputation: 61
Another possible cause of this issue (to help others in my situation): If you are opening your form using VBA and the DoCmd.OpenForm method, make sure your 5th parameter is not "acFormReadOnly"!
Not editable text boxes:
DoCmd.OpenForm stFormName, , , , acFormReadOnly, acWindowNormal, stLinkCriteria
Editable text boxes:
DoCmd.OpenForm stFormName, , , , acFormPropertySettings, acWindowNormal, stLinkCriteria
Upvotes: 2
Reputation: 12062
I think vba controls have two properties which can cause this. Locked and Enabled. Is the textbox enabled?
Upvotes: 5