Question : How can I alter the width of a datasheet inside a subform?

Someone encountered the same problem and was able to solve it using this question

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_21261461.html?sfQueryTermInfo=1+10+30+columnwidth+properti+subform

Me.Child28.Form!UnitPrice.ColumnWidth = 2880 is the way they use .

my datasheet is inside a subform so I assume my version should look like

'Forms!Form10!Child52.Form!Comments.ColumnWidth = 2880

but I get the Object does not support this method error.

Comments is the field name on the datasheet

how can I correct this syntax so it works

thanks

Answer : How can I alter the width of a datasheet inside a subform?

use the name of the textbox not the name of the Control Source

Forms!Form10!Child52.Form!Comments1.ColumnWidth = 2880
Random Solutions  
 
programming4us programming4us