Moving Variables

leerlap

Registered User.
Local time
Today, 14:47
Joined
May 4, 2003
Messages
22
Just need a quick line of code, i believe. I have a variable [TEXT] on a form that i want in a different place on the screen based on another variable. So, if a user selects option 1, [TEXT] will be at x=0 and y=3, but if user selects option 2, [TEXT] will be at x=0 and y=6.

Example:
If OPTION = 1 Then
[TEXT] moves to 0 and 3 coordinates
Else
[TEXT] moves to 0 and 6 coordinates
End If

Any help on the movement line?? Thanks.
Lee
 
Lee,

I haven't had an app where I move things like that,
but Access can do that easily. I don't have Access with
me right now, but you can get your code in design view
and type:

Me.YourTextBox.

When you hit the last dot, the drop-down list will show
you the properties. The two for the x/y coordinates should
be readily apparant. You will probably have to experiment with
the units.

Wayne
 
Hmmm - still having some difficulty. Any other specific guidance? Thanks.
Lee
 
You could always have two text boxes tied to the same field in your table/query, then set the visual property of one to True and the other to False depending on the option selected.

The Missinglinq
 

Users who are viewing this thread

Back
Top Bottom