I have read many posts related to my question, but none that actually discuss my particular problem.
I have a form in an Access database that I am using as a data entry form. Currently, the textboxes are unbound. My theory was to let people either enter new data and save to the final record (this side of the form works), or use a combobox to look up an existing record to update.
I have a combobox (cmbEntryID
) that selects the record using a query (qryEntryID
). When I run this query not on the form, it gives me all the information including several Long Text columns that are NOT limited to 255 characters. When I run it using the form, the record information in all the text boxes with long text is truncated to 255 characters. I have switched them from plain text to rich text, checked any associated tables, and looked at every formatting option I could see and it appears the problem may lie in my code. Do any of the following methods limit total characters for text fields?
Private sub cmbEntryID_AfterUpdate()
Dim rs as recordset
me.txtEntryNum = me.cmbEntryID(0)
me.txt1 = me.cmbEntryID.Column(1)
me.txt2 = me.cmbEntryID.Column(2)
Set rs = currentDb.openrecordset(qryEntryID)
with rs
rs.Edit
rs!EntryID = me.txtEntryNum.value
rs!Comment1 = me.txt1.value
rs!Comment2 = me.txt2.value
rs.update
end with
rs.close
end sub