Results 1 to 3 of 3
  1. #1
    mpatel is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2017
    Posts
    1

    How to apply text/layout formatting to a query?

    I notice that when I make a report I don't seem to have filter options available to me anymore.


    However when I make a query, I don't seem to have any kind of basic formatting features (i.e. if I want to colour code a specific field).

    In my current situation, I would need certain fields in my query logically grouped together (colour coding each logical grouping with a certain colour would be ideal), but at the same time I need to be able to use filters as I please.

    Is there any way to have filtering and formatting capabilities at the same time?

    Forgive me if there's an easy answer I'm overlooking, I'm new to access.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,930
    Not sure what you mean by filter options In reports. If you right click on a textbox, you should get a dropdown menu to enable you to filter unless you have turn off shortcut menus

    queries are viewed as datasheets, they have no formatting capabilities other than formatting numbers/dates (unless you mean all columns). In a datasheet form you can use conditional formatting on the controls to affect color. And you can use a datasheet form as a subform to a report.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I notice that when I make a report I don't seem to have filter options available to me anymore.
    You can have your filtering option(s) on a form, then open the report using (in this case) a button named "DoRpt":
    Code:
    Private Sub DoRpt_Click()
        Dim sWhere As String
    
        sWhere = "MyField = " & Me.Category
        DoCmd.OpenReport "Report1", acViewPreview, , sWhere
    End Sub

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

Similar Threads

  1. Apply formatting to query results
    By Access_Novice in forum Queries
    Replies: 5
    Last Post: 09-11-2014, 02:22 PM
  2. Export query to Excel and apply conditional formatting
    By mcpearce in forum Import/Export Data
    Replies: 4
    Last Post: 04-27-2014, 05:26 PM
  3. Replies: 7
    Last Post: 03-03-2014, 01:36 PM
  4. how to apply Conditional Formatting in run time
    By selvakumar.arc in forum Forms
    Replies: 7
    Last Post: 07-03-2013, 12:41 PM
  5. Replies: 0
    Last Post: 03-14-2011, 08:38 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