Page 3 of 3 FirstFirst 123
Results 31 to 32 of 32
  1. #31
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,655
    Probably could do something like
    Code:
        Dim qdf As DAO.QueryDef
        Dim fld As Field
        Dim strOut As String
    
    
        Set qdf = CurrentDb.CreateQueryDef("", Me.RecordSource)
    
    
        For Each fld In qdf.Fields
            strOut = strOut & "Name: " & fld.Name & vbTab & "Position: " & fld.OrdinalPosition & vbTab & _
                                "size: " & fld.Properties("size") & vbTab & "Type: " & fld.Type & vbNewLine & vbNewLine
        Next
    
    
        MsgBox strOut
    Click image for larger version. 

Name:	mbx.png 
Views:	11 
Size:	10.4 KB 
ID:	49088



    lots of properties available https://learn.microsoft.com/en-us/of...properties-dao

    Personally I would debug.print instead of msgbox.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  2. #32
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Quote Originally Posted by Middlemarch View Post
    I didn't answer answer @Minty as I wasn't sure what to say. It seemed obvious, wanting to know about your data and its structure etc.
    In this particular case I was building a Msgbox of all 'parts' of my field, instantly showing their names and addressing to help me with coding.
    Now I understand! An development assistant.

    I could see no real use of this in an application that would make any sense, hence my quizzicalness (that's not really a word is it...).
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. OLE or Active X Control Error
    By WCStarks in forum Forms
    Replies: 6
    Last Post: 01-29-2018, 05:27 PM
  2. Replies: 4
    Last Post: 02-18-2016, 12:06 PM
  3. Detect which control is active
    By Williams485 in forum Forms
    Replies: 4
    Last Post: 07-23-2015, 10:00 AM
  4. Active Control on Image
    By LonghronJ in forum Modules
    Replies: 12
    Last Post: 07-15-2015, 03:57 PM
  5. Active X form control
    By amitsingha4u in forum Access
    Replies: 2
    Last Post: 05-18-2010, 12:21 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