Results 1 to 3 of 3
  1. #1
    Wiretwister is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2023
    Posts
    2

    Preventing a Query from Overwriting Field Names in a Table

    Windows 10, Access 2000



    Hello,

    Working on modifying a query to find possible component substitutes to include in a Bill of Material. The query shown here writes data to a table (Bill of Material Table). I would like the table to have these 6 (more user-friendly) field names: BOM Part Number, Item Number, Component Part Number, Quantity, BOM Notes, and Effective Date. When I run the query, it changes the field names to: PARPRT_02, UDFKEY_02, COMPRT_02, QTYPER_02, Notes_61, and EFFDTE_02.

    What can I do to keep my chosen field names in place?

    Thanks in advance!
    Click image for larger version. 

Name:	bomquery.jpg 
Views:	18 
Size:	124.6 KB 
ID:	52436

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Use an alias for each.
    Though you could just have captions for those fields.
    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

  3. #3
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Users shouldn't be seeing tables or query results as datasheets, so this should be a non-starter unless this is something you as the developer needs to have.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-07-2019, 02:57 PM
  2. Replies: 3
    Last Post: 10-11-2016, 09:21 AM
  3. Replies: 7
    Last Post: 06-05-2015, 11:13 AM
  4. Overwriting Calculated Field
    By sidewayzalex in forum Forms
    Replies: 2
    Last Post: 08-24-2011, 05:52 AM
  5. overwriting table rows
    By VickyC in forum Forms
    Replies: 2
    Last Post: 09-23-2010, 07:58 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