Hi All
i have a form named Form1 and subform named SBFRM
subform show data for select query based on value of text box on form 1
subform shows data in datasheet view
my problem is .
data having diffrent lenght of character as In EmpName Field,
Raj
Rajkumar
Rajkumar Sharma
but when it shows in datasheet view, i want to set column width of field , EmpName, is according to data,
i have tried..
me.controlname.columnwidth=-2
but it shows no result
please give me solution
and if u can give me other solution for.. automatically change subform width and height of subform, based on no of record and columnwidth,,,
i also gives more thanks to u..
please give me solutions..
thanks in advance
i have a form named Form1 and subform named SBFRM
subform show data for select query based on value of text box on form 1
subform shows data in datasheet view
my problem is .
data having diffrent lenght of character as In EmpName Field,
Raj
Rajkumar
Rajkumar Sharma
but when it shows in datasheet view, i want to set column width of field , EmpName, is according to data,
i have tried..
me.controlname.columnwidth=-2
but it shows no result
please give me solution
and if u can give me other solution for.. automatically change subform width and height of subform, based on no of record and columnwidth,,,
i also gives more thanks to u..
please give me solutions..
thanks in advance