Results 1 to 7 of 7
  1. #1
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44

    Form for Query not showing Captions of Table


    How do I get a form for a query of a table to show the captions that are in the table instead of the field names?

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Properties like the caption of fields in table are adopted by controls when the field is added to form or report from the form/report designer Field List. Otherwise, will have to manually type whatever you want in the label.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    The labels are correct. I want the field headers of the form to show the captions in datasheet view, just like the table does.

    Thanks

  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
    Quote Originally Posted by 316854 View Post

    ...I want the field headers of the form to show the captions in datasheet view, just like the table does...
    In Table Design View

    1. Select a Field
    2. Go down to the Caption Property, on the General Tab, for that Field
    3. Enter the text you want to display (without Quotes)
    4. Repeat for each Field

    Note that this will not be reflected in existing Forms...only in Forms created after the Captions were entered.

    The Labels 'being correct' doesn't really come into it, in a Datasheet View Form; Labels aren't displayed in this type of Form View.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    The datasheet view should take as headers the caption of label associated with the textbox or combobox. If the data control does not have associated label, then the fieldname will be the header. That's what happens in my db.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    How do I associate a label with a combobox?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    A newly created data control should have an associated label. If there are disassociated labels and they no longer show little green triangle in upper left corner, delete label then paste back and the triangle will show (or create new label from the controls collection). Click on triangle and make choices to associate label.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 16
    Last Post: 09-17-2013, 04:35 PM
  2. Keeping Column Captions when exporting expoting pivot table
    By UofAHogs in forum Import/Export Data
    Replies: 1
    Last Post: 06-04-2012, 12:46 AM
  3. Query results showing table relationship
    By Steven.Allman in forum Queries
    Replies: 2
    Last Post: 04-23-2012, 01:31 PM
  4. Using table data as button captions
    By jecanne in forum Access
    Replies: 7
    Last Post: 11-13-2011, 04:56 PM
  5. Form with Label captions that size dynamically
    By karmacable in forum Forms
    Replies: 3
    Last Post: 09-26-2011, 10:09 PM

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