Hi,
I have a database in Access that currently holds the status of a salesperson and the comments of the status. The comment is an open-ended field typed in by a user.
For example, if Jonny has the status of "On Leave" then the comment might say "26-11-09: Johnny is currently on medical leave and will return by 01-12-09". The comment is a compiled overtime and stored in a Text box.
However, my problem is that, when i transfer this column called "Comments" into excel, it populate all the comments into one single field. Thus the field in excel becomes very large and hideous.
So the solution i had was to create an input box.
The purpose of my soultion is to always save the last comment that the user types in into another textbox. So that if i export the "Comment" into excel, it will only show me the lastest comment. And if the user puts in a new comment, the previous comment will be saved in another textbox, or alternatively an array?
For now, i can only create the Input Box but i cannot do the function that allows me to save previous comments and only extract the latest comment into excel. Hopefully i can get some advice(:
Many thanks in advance for all the help!!
Nicole
I have a database in Access that currently holds the status of a salesperson and the comments of the status. The comment is an open-ended field typed in by a user.
For example, if Jonny has the status of "On Leave" then the comment might say "26-11-09: Johnny is currently on medical leave and will return by 01-12-09". The comment is a compiled overtime and stored in a Text box.
However, my problem is that, when i transfer this column called "Comments" into excel, it populate all the comments into one single field. Thus the field in excel becomes very large and hideous.
So the solution i had was to create an input box.
Code:
Sub UserInput() Dim iReply As Integer iReply = MsgBox(Prompt:="Please insert the latest comment", _ Buttons:=vbYesNoCancel, Title:="Insert Comment") If iReply = vbYes Then 'Insert comment into TextBox as "Latest Comment" Then push previous comment into another field ElseIf iReply = vbNo Then 'Do Other Stuff Else 'They cancelled (VbCancel) Exit Sub End If End Sub
For now, i can only create the Input Box but i cannot do the function that allows me to save previous comments and only extract the latest comment into excel. Hopefully i can get some advice(:
Many thanks in advance for all the help!!
Nicole
Comment