Results 1 to 4 of 4
  1. #1
    Bospeentje is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    15

    adjust column width in datasheet form

    Dear forum,

    Anyone knows how to adjust the column width in a datasheet form permanently?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Usu. you adjust width, and it stays.

  3. #3
    Bospeentje is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    15
    *&^%$#&^%^.....so I noticed!! Tnx
    (must be the monday thing)

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Alternatively, you could program the columns to 'size-to-fit.'

    For specific Controls:
    Code:
    Private Sub Form_Load()
      Me.Textbox1.ColumnWidth = -2
      Me.Textbox2.ColumnWidth = -2
    End Sub

    For all Controls containing data
    Code:
    Private Sub Form_Load()
    
    Dim ctrl As Control
    
     For Each ctrl In Me.Controls
        
        If Not (TypeOf ctrl Is Label) Then
         
           ctrl.ColumnWidth = -2
           
        End If
      
      Next
    
    End Sub

    Linq ;0)>

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 04-10-2012, 12:34 PM
  2. Replies: 2
    Last Post: 02-22-2012, 05:10 PM
  3. Replies: 1
    Last Post: 11-02-2011, 02:18 PM
  4. Excel Automation Autofit Column (or Cell?) Width
    By orcinus in forum Programming
    Replies: 3
    Last Post: 02-09-2011, 11:44 AM
  5. Replies: 0
    Last Post: 12-25-2008, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums