Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update table with memo field from form

Status
Not open for further replies.

MAINOH

Technical User
Jul 7, 2006
24
US
I have a form with a field named comment which is populated from the following code (which is on the after update property of text box on the form which allows users to enter text):

Private Sub txtNewComment_AfterUpdate()
Dim NewComment As String
txtNewComment.SetFocus
NewComment = txtNewComment.Text
txtNewComment = Null
Comment.SetFocus
If (IsNull(Comment) = True) Or (Comment.Text = "") Then

Comment = "Entered: " & vbNewLine & Date & " " & Time & " " & NewComment

Else

Comment = Comment.Text & vbNewLine & Date & " " & Time & " " & NewComment

End If

End Sub

I need to be able to take the value of the field comment and update a field named tracking notes in the table bound th the form.

thanks for your assistance.
 
Why not simply bind the Comment control to the [tracking notes] field ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PHV, the comment field is bound to the field tracking notes. But the comments still do not show in the table.

 
The only thing that shows in the table is the 1st word of the comments field from the form which is "entered".
 
Even when you increase the row height ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top