Help moving a textbox

helen85

Registered User.
Local time
Today, 00:38
Joined
Apr 6, 2007
Messages
33

Hello

I wonder if anyone can help me, I need to move a text box with an access report. I have the code on the activate event.
Currently I have:
Me.Controls (TextBox1).Left = 12828
Me.Controls (TextBox1).Left = 888

But this isn’t working, :( can anyone give my an example of this.
Thank you
 
Either this:
Code:
Me.Controls("TextBox1").Left = 12828
Me.Controls("TextBox1").Left = 888

OR

Code:
Me.TextBox1.Left = 12828
Me.TextBox1.Left = 888
 
Hi

Thank you for the advice, however I have tried this, and its giving me the same error, the box that I am moving TextBox1 jumps to the far left.

Thank you
 
You're performing the operation twice so it is doing as you've told it.
 
yeah, sorry i meant

Me.Controls (TextBox1).Left = 12828
Me.Controls (TextBox1).Top= 888

 
If you're trying to get your control to skip a section then it would't work by the way. Remember the measurements are in twips as well so that number 12828 is quite huge.
 
Yeah that was just an example here is the code I have:

Me.Controls("TextBox1").Left = 9.199
Me.Controls("TextBox1").Top = 0.399

The left sould be moving from the right of the report closer to the left. But 9.199 the left pos, isnt as left as what the its currenlty jumping to.
 
Why not create an invisible line or textbox there (i.e. the far left) and set the left of this textbox to the left of that line or textbox.
 
Yeah I do have another textbox on the report, thats how I got the left and top values.
 
ah, I see, that works :)


Thank you very much for your help
 

Users who are viewing this thread

Back
Top Bottom