Scolling a text box in Access2003

S

StuJol

im using Access2003 and have a text box on a form. the text box is data
locked and not enabled.

i use some vb code to write status's into the text box. the text box is 10
lines high. my code writes lines 1 and 2 then waits for 2 secs. writes line 3
and 4 then waits 2 secs then writes lines 5 and 6 etc etc up until approx 20
lines.

thefore im writing 20 lines of text into a text box that is only 10 lines
high. im trying to get the text box to scroll down as i write text into it so
the latest text is visable and the oldest text is scrolled to the top out of
the way. ive tried loads of different ways but i cant get the text box to
scoll as i update the text contents.

does anyone know how to do this please?
 
A

Arvin Meyer [MVP]

I cannot repeat that behavior. I built a 2 line text box and coded 20 lines
of text to the box with and without scroll bars in the text box, and it
filled all 20 lines at the same instant. You have some other code possibly
interfering.
 
J

John W. Vinson

im using Access2003 and have a text box on a form. the text box is data
locked and not enabled.

i use some vb code to write status's into the text box. the text box is 10
lines high. my code writes lines 1 and 2 then waits for 2 secs. writes line 3
and 4 then waits 2 secs then writes lines 5 and 6 etc etc up until approx 20
lines.

thefore im writing 20 lines of text into a text box that is only 10 lines
high. im trying to get the text box to scroll down as i write text into it so
the latest text is visable and the oldest text is scrolled to the top out of
the way. ive tried loads of different ways but i cant get the text box to
scoll as i update the text contents.

does anyone know how to do this please?

I'd say... fake it.

Instead of pausing (with a timer in VBA I presume...?) after two lines, have
your code fill a ten-line buffer, and copy the entire buffer to the textbox at
timed intervals. Your code will have to determine which ten lines are to be
displayed at any time.

John W. Vinson [MVP]
 

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