My main form opens a form in Data entry mode. (with: DoCmd.OpenForm "ItemAddNew", , , , acFormAdd, acDialog)
I enter data in the form ItemAddNew.
I click save button.
Before save it calculates a field:
Me.Code = Me.S_cbo.Column(5) +1 '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''' '''' calculation of the Code, which is bound to field 'Code'.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 ''''''''' save
The text box doesn't have methods or anything...
Edit: I changed the text box's name to field's name and it's ok now, my mistake.