textbox movement

J

JohnE

I have a form on it that has 2 textboxes. Each txtbox is for the user to put
in notes or a listing of items, etc. There may be times when they are in
txtbox 1 and want to see a corresponding item in txtbox 2. The text boxes do
not hold there position when on the other.
Is there a way to keep the textbox from moving back to starting line when on
the other textbox? If so, how is it done?
Thanks.
 
D

Damon Heron

i think I know what you are asking... when you
enter the textbox you want it to go to the end of the line, correct?
try this on your named textboxes:

Private Sub Text0_Enter() 'This is my textbox name. Change to reflect your
names.

Me.Text0.SelStart = Nz(Len(Text0), 0)
End Sub

Damon
 
J

JohnE

Not really what I was looking for. The textbox is acting like a listbox.
The user is able to add or remove document names, outstanding info still
needed, put in there part numbers to be used, and so on. Eventually this
info does get removed. But the user could be on line 30 of txtbox A and is
scrilling thru txtbox B looking for an item regarding that item. It is
holding txtbox A at line 30 while scrolling thru txtbox B. It is the holding
of txtbox A on line 30 while scrolling thru txtbox B is what is needed.
Confusing, but a decade old app that keeps getting upsized to the next
Access version. Next year it is planned for a redesign/overhaul (I'm not
hold my breath until it occurs).
.... John
 
D

Damon Heron

You are calling it a textbox but it sounds like a listbox. Two different
things! If it is a textbox, then there must be
hella coding behind it to make it act like a listbox.

Damon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top