Hello everyone -
I am trying to find a way to set field's width to be based on a control on a form. I have a form that shows the progress of selection waves and there is a field called "Percentage Done" on which I want to based the width of a field called rctBar.
I found a thread that did this exact process on reports by creating a rectangle control and putting the following code in the OnFormat event of the Detail section of the report:
rctBar.Width = ([Percentage Done] / 100) * (1440 * 3)
This works perfect but only works in Print Preview, no other views.
I would prefer to use a form but could use a report too. The trick I have is that the form/report updates every 30 seconds to show the progression of the selection waves. When I am looking at the form in Form view or the report in Report view, the number fields update but the bar does not change widths to show the increase in "Percentage Done". When am looking at the report in Print Preview, it doesn't update every 30 seconds.
Can anyone tell me if this is possible to do in a form or in the Report View of a report?
Thank you in advance.
I am trying to find a way to set field's width to be based on a control on a form. I have a form that shows the progress of selection waves and there is a field called "Percentage Done" on which I want to based the width of a field called rctBar.
I found a thread that did this exact process on reports by creating a rectangle control and putting the following code in the OnFormat event of the Detail section of the report:
rctBar.Width = ([Percentage Done] / 100) * (1440 * 3)
This works perfect but only works in Print Preview, no other views.
I would prefer to use a form but could use a report too. The trick I have is that the form/report updates every 30 seconds to show the progression of the selection waves. When I am looking at the form in Form view or the report in Report view, the number fields update but the bar does not change widths to show the increase in "Percentage Done". When am looking at the report in Print Preview, it doesn't update every 30 seconds.
Can anyone tell me if this is possible to do in a form or in the Report View of a report?
Thank you in advance.