Thanks guys!
To answer orange, the form is for tracking problem tickets. I have a search box where someone enters in the number of a ticket and it brings up the results. There is a field called "txt_PaymentUpdates" where someone can update the ticket with a new status. I want to make that field read-only and have the user be forced to click an "Add Update" button but I need to keep all old statuses in there. So anything entered into the new popup will append to the txt_PaymentUpdates field.
aytee11:
I like the logic of that so I tried it but I'm getting the same error where it says "You can't reference a property or method for a control unless the control has the focus. Even when I put this in the On Close event, when I click the Submit button the form seems to still stay there and doesn't close, just gives that error. I've tried massaging the code but can't find a way to get it to work:
Code:
Private Sub cmd_Submit_Click()
DoCmd.Close
End Sub
Private Sub Form_Close()
Dim NewUpdate As String
NewUpdate = txt_PaymentNewUpdate.Text
' Forms!frm_Add_Update_Payment_Exceptions!txt_PaymentUpdates.SetFocus
Forms!frm_Add_Update_PPaymentExceptions!txt_Paymentpdates = Forms!frm_Add_Update_PPaymentExceptions!txt_PPaymentpdates & Me!NewUpdate
End Sub
I've tried removing the setfocus line, not having a DoCmd.Close event, and other forms but always end up getting an error.