Hello,
I have a main form that I record payement records in a text box each month. For certain months there are notes worth recording with the payment. I have a seperate 'Notes' form that opens with a text box that I use to enter notes. What I need is to copy and insert the values from the Notes text box, into the text box on my main form. Basically I need to pass the value between two forms. I get an error saying "Object required" when I try to pass it, my code looks like this:
Private Sub Command2_Click()
Dim x As String
'The Notes Form text box
Notes.SetFocus
x = Notes.Text
'Pass value to main form text box, with date
Me!PaymentHistory!Other.SourceObject
Other = Now() + x
End Sub
I have a main form that I record payement records in a text box each month. For certain months there are notes worth recording with the payment. I have a seperate 'Notes' form that opens with a text box that I use to enter notes. What I need is to copy and insert the values from the Notes text box, into the text box on my main form. Basically I need to pass the value between two forms. I get an error saying "Object required" when I try to pass it, my code looks like this:
Private Sub Command2_Click()
Dim x As String
'The Notes Form text box
Notes.SetFocus
x = Notes.Text
'Pass value to main form text box, with date
Me!PaymentHistory!Other.SourceObject
Other = Now() + x
End Sub