+ Reply to Thread
Results 1 to 2 of 2

How to disable all sorting for queries and report using vba script?

  1. #1
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    215

    How to disable all sorting for queries and report using vba script?

    When I want to print a report, the data in the report is not printed in the order in which the data exists in the table.. Although I have turned off the sorting option in 'Query'. Can someone give me a 'VBA' script to forcefully disable all sorting, so that I can print the data as in the database table in the order they exist. Please someone help me.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 VersionVersion 2501 Win 11
    Posts
    24,424

    Re: How to disable all sorting for queries and report using vba script?

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel VBA Script Crashes When Refreshing Power Queries Using Task Scheduler
    By beaglesBuddy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2017, 01:03 AM
  2. Need VBA Script To Calculate Totals For Inventory Report
    By scarlettw123 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-17-2015, 01:20 PM
  3. VB Script - Split Report PDF into mutiple files
    By rmikulas in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2012, 10:53 AM
  4. Macro/Script help for report
    By bigrockford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-05-2007, 04:00 PM
  5. [SOLVED] How do I disable backup files from Excel Queries?
    By simmon in forum Excel General
    Replies: 0
    Last Post: 08-22-2006, 09:30 AM
  6. [SOLVED] Create a report using multiple queries
    By bdiff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2006, 09:15 AM
  7. Disable Open option in Excel Report from VB
    By oursmp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2005, 07:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1