Change width of Object Box to data value (1 Viewer)

Niroth

Registered User.
Local time
Today, 15:59
Joined
Jul 12, 2007
Messages
81
Hi,

I have a form with start date and end date and I'm trying to create a visual for the duration, so I would like to add a box that will change the width according to the duration in each row. I have this, but it does not work, not sure why? Can you help me? Thank you.

Private Sub Form_Load()

Me.durationBox.Width = Me.durationW

End Sub
 
Last edited:

pbaldy

Wino Moderator
Staff member
Local time
Today, 15:59
Joined
Aug 30, 2003
Messages
36,126
What value does durationW contain? If memory serves, the width property would be set with twips.
 

Minty

AWF VIP
Local time
Today, 23:59
Joined
Jul 26, 2013
Messages
10,371
Also - I don't think this would work on a continuous form - you mentioned each row
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 15:59
Joined
Aug 30, 2003
Messages
36,126
I didn't notice that; it would set all rows the same on a continuous form. You could do it on a report.
 

Users who are viewing this thread

Top Bottom