A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

single text box to multi text box



 
 
Thread Tools Display Modes
  #1  
Old April 24th, 2008, 11:26 PM posted to microsoft.public.access.forms
rafaeljsg
external usenet poster
 
Posts: 4
Default single text box to multi text box

Hello, I need to have a text box that show a single line when is view in the
form then if I click on it or move the mouse over it will show multiple lines
with it's data, sample:


client: john doe "single line"

now I go and over the field or click the field and I see

client:john doe
jane doe
ect. ect.
and when I move the mouse away or click the next field goes bank to:

client: john doe "single line"

can this be done with out select box is not a selection the data would be
enter like this

jonh doe, jane doe, ect.,ect.

Help and thanks

Rafael

  #2  
Old April 25th, 2008, 03:28 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP]
external usenet poster
 
Posts: 4,231
Default single text box to multi text box

You can use a MouseMove Event to display the contents of the textbox in a
ControlTip like:

Private Sub txtWhatever_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Not IsNull(txtWhatever) Then
txtWhatever.ControlTipText = txtWhatever
End If
End Sub

or use it to grow the textbox:

Private Sub txtWhatever_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me.txtWhatever.Height = 1440 ' twips which is 1 inch
End Sub

but you'll also need to put it back in the form's detail section:

Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me.txtWhatever.Height = 280 ' twips
End Sub

You might also use the text box's Got and Lost focus events to do the same.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"rafaeljsg" wrote in message
...
Hello, I need to have a text box that show a single line when is view in
the
form then if I click on it or move the mouse over it will show multiple
lines
with it's data, sample:


client: john doe "single line"

now I go and over the field or click the field and I see

client:john doe
jane doe
ect. ect.
and when I move the mouse away or click the next field goes bank to:

client: john doe "single line"

can this be done with out select box is not a selection the data would be
enter like this

jonh doe, jane doe, ect.,ect.

Help and thanks

Rafael



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.