Results 1 to 4 of 4
  1. #1
    pj33558 is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    18

    Can Forms Call a Report rather than a query

    I have asked someone at work with far greater (and recent) experience with Access than I do.

    He created a form with a drop down box that contains each member of a group of employees.

    The form "calls" a query, runs the query, populates the information, gets spun to SP, dropped into the person's personal SP folder, and emails an alert to the person to let them know it's ready for review.

    That'd be fine, I guess, but I have already created reports for each piece of the process. Unfortunately, the reports contain everyone's information (grouped by person).



    The queries are a 1st review in the process. Those queries get exported to Excel, reviewed, changes made, and then sent back to the team. I am taking care of the changes by having an adjustment table.

    So, my remaining issue is: Is there no means to have the form call the "report" instead of the query?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    Code can open whatever object you specify.

    What query is 'called' and 'run'. SELECT queries do not have to be 'called' and 'run', only action queries (INSERT, UPDATE, DELETE) need this.
    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
    pj33558 is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    18
    Thank you for your really fast response!!!

    Overall, there are 8 pieces of one process. Each piece has its own quirks. The largest piece has two queries:

    1st query - takes data streaming from GL via ODBC link and parses it down
    2nd query - takes the results of #1, adds in an employee table to get appropriate pay %s for various things can calculates a payment amount for each line item

    That 2nd query's results are then exported to Excel for distribution to management and executive teams for review.

    Any changes to those items are put into the Adjustments table.

    All other queries (there are 7 other pieces of this process) all require ONLY step #2 above. The information is able to be parsed and calculated in one query vs. requiring two.

    The results of those queries are likewise sent to management and executive teams for review and changes. And adjustments handled the same way.

    The guru at work, made a form which called those queries. Programmed a "GO" button behind the scenes for the process to run.

    That code was pointing at the 1st query above and obviously, created issues for the front 3/4 of the process so, I took out the [forms].[a;sdfkj ] out of the criteria in the 1st query.

    Which led me to my question now:

    I have all 8 pieces of the process done and spun into reports. Those reports are based off the queries (and formatted the way I want).

    Couldn't I just modify that VBA code to point to my reports and have the process work that way?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    Probably. Reports can be exported to Excel or PDF. How useful the Excel file would be depends on the report structure.

    However, if any of those queries are SQL actions I would expect they still have to be run before outputting report.
    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: 3
    Last Post: 08-30-2013, 01:01 PM
  2. Replies: 6
    Last Post: 04-04-2013, 05:32 PM
  3. Replies: 9
    Last Post: 08-10-2012, 03:10 AM
  4. Help Writing VBA and call to query
    By brianb in forum Programming
    Replies: 7
    Last Post: 03-09-2011, 09:42 AM
  5. Replies: 0
    Last Post: 02-17-2011, 02:08 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