G
Guest
Hello,
I have a Form with a SubForm on it set to Datasheet View.
I would like to be able to programmtically set the Column Widths of each
column so that when the Form opens they are set to certain withds, or ideally
a "Fit To" Width, that is
wide enough so all data shows, so user does not have to Expand the width
manually.
I tried the following:
In the Main Form Load Event..
Private Sub Form_Load()
Form_subfrmPaymentMethods.txtPaymentMethod.Width = 1440
End Sub
I also tried in the SubForm Load Event...
Private Sub Form_Load()
txtPaymentMethod.Width = 1440
End Sub
Neither works. It just retains the previous width from what user set.
Any help would be greatly appreciated.
Thank you,
Jeff
(e-mail address removed)
I have a Form with a SubForm on it set to Datasheet View.
I would like to be able to programmtically set the Column Widths of each
column so that when the Form opens they are set to certain withds, or ideally
a "Fit To" Width, that is
wide enough so all data shows, so user does not have to Expand the width
manually.
I tried the following:
In the Main Form Load Event..
Private Sub Form_Load()
Form_subfrmPaymentMethods.txtPaymentMethod.Width = 1440
End Sub
I also tried in the SubForm Load Event...
Private Sub Form_Load()
txtPaymentMethod.Width = 1440
End Sub
Neither works. It just retains the previous width from what user set.
Any help would be greatly appreciated.
Thank you,
Jeff
(e-mail address removed)