Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Quote Originally Posted by Welshgasman View Post
    I have asked isladogs, as he has extensive knowledge of the deep stuff. After all, the property sheet must get them from somewhere?
    Just to confirm:
    Although the details of all database objects are stored in the system table MSysObjects, the fields are stored as table properties.
    They aren't in any of the deep hidden tables, all of which I have viewed. Those are used to hold details of complex data stored in MVF, attachment and column history fields



    I would suggest looking at Allen Browne's procedure to extract the field names, save them to a table and run a query on them as already suggested
    See http://allenbrowne.com/func-DAO.html#ShowFields

    Alternatively use the Database Documenter built in to Access to view a list of fields, datatypes etc.
    The problem is that it gives far too much info and is only available as a report in print preview mode
    Here's a deliberately simple example:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	16 
Size:	6.5 KB 
ID:	47712
    Unfortunately you can't get to design view to view the report record source and query it. However you can export to e.g. Excel
    Last edited by isladogs; 04-27-2022 at 02:56 PM.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  2. #17
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    You can limit output to just field names, types and sizes though? Good point about Excel; spreadsheet could even be used as a table.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #18
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Yes you can omit the indexes part.
    I've tried exporting to Excel. The output is usable but not ideal
    Personally I wouldn't use the documenter approach for anything more than a quick check
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #19
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    arnelgp over on AWF approached the problem in the same way the O/P was attempting.

    See post 5 in https://www.access-programmers.co.uk...post-1823735#5
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #20
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Now spoilt for choice with all the methods available.
    All because an array was not declared correctly.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-28-2017, 06:17 PM
  2. Replies: 7
    Last Post: 08-06-2014, 05:38 PM
  3. Type Mismatch with related field
    By iacon in forum Forms
    Replies: 3
    Last Post: 05-22-2014, 06:29 AM
  4. Type mismatch from search field
    By gemadan96 in forum Programming
    Replies: 3
    Last Post: 01-09-2014, 09:29 AM
  5. Field names in an array
    By Seamus59 in forum Programming
    Replies: 11
    Last Post: 08-09-2013, 11:56 AM

Tags for this Thread

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