Change width of Object Box to data value

Niroth

Registered User.
Local time
Today, 03:58
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:
What value does durationW contain? If memory serves, the width property would be set with twips.
 
Also - I don't think this would work on a continuous form - you mentioned each row
 
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

Back
Top Bottom