RE: Visual Basic
- From: MIKemp <MIKemp@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 May 2005 07:24:21 -0700
I don't know if I'm being incredibly thick here but, try this.
Create a rectangle on a form. Ensure that the back style is set to normal
and that the back colour is set to anything other than the form colour.
Create a text box and in the 'After Update' Event Write:
Me.Box54.Width = Me.Text55 * 50 - Box55 and Text55 were the names of my two
controls. Change these to reflect the controls on your form.
To test run the form and enter a number in the text box. This number is
multiplied by 50 twips to increase or decrease the width of the box.
Presumably when you've added all your bits and pieces the number will be
derived from somewhere else.
I'm sure that a 'guru' would put me to shame on this.
Michael K
"AZWM" wrote:
> I have absolutely no experience with Visual Basic so I really have no idea
> how to write this code. I need to write one that creates a timeline - so it
> would create different lengths for rectangles based on how long a project
> lasts. Thanks for any and all help.
.
- References:
- Visual Basic
- From: AZWM
- Visual Basic
- Prev by Date: Update query or VBA request
- Next by Date: RE: Field Relationships
- Previous by thread: Re: Visual Basic
- Next by thread: Re: Visual Basic
- Index(es):
Relevant Pages
|