Solved

Sub Form column Size to be Fixed

Posted on 2012-03-28
2
390 Views
Last Modified: 2012-03-28
Hi team,

I have a sub form inserted into a main form.  Now I want to fix the column width of each and every column that is showing up in the Sub form.

I have attached a sample database.  In this you will have a from named as Testing.  In this I have inserted a Sub From, Now I should be able to fix the coloumn with of each of the column of data that is showing up.

Please adivse how do I achive this.

Thanks,
Sandesh.
Check-Payment.accdb
0
Comment
Question by:Sandesh555
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 37777932
Use the form load event procedure as in this example...

Private Sub Form_Load()
' 1440 twips per inch ; 567 twips per cm
Me.Invoice.ColumnWidth = 567
Me.Open_Amount.ColumnWidth = 1440
Me.ID.ColumnWidth = 10
End Sub
0
 

Author Comment

by:Sandesh555
ID: 37777985
Thanks....
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question