Results 1 to 4 of 4
  1. #1
    Kimbertha is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    33

    View SQL or VBA for Report?

    Hello Everyone:



    Is there a way to view the SQL or VBA for a report similar to the way we can view the SQL for a query?

    It seems to me it exists somewhere, but it's been awhile since I've had to work with that and I can't remember how to find it.

    Kim

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    In the properties of the report, the record source would be the SQL/query/table the report is based on, and any report level event code could be accessed from the events tab. You could see all code for that report by going into the VBA editor and selecting that report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    PB's advice is always correct. It is the question in this case that is a bit different. A report really can't be reduced to a line of code like a query can with SQL view....unless one is getting into an xml type file..... Otherwise one looks at any of the vba of events (if there are any events...)

  4. #4
    Kimbertha is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    33
    Darn. As you all surmised, I was hoping for an SQL-like cheat sheet of all the report's objects and their contents, formulas, properties, placement, etc. But it makes sense that such a thing does not exist

    I guess I remembered editing the VBA for an event in the past. This report has no events so there wouldn't be any code there.

    Thanks anyway.

    Regards,

    Kim

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

Similar Threads

  1. Replies: 10
    Last Post: 07-25-2011, 12:07 PM
  2. Report does not reflect database view
    By ErinHayes in forum Reports
    Replies: 5
    Last Post: 09-27-2010, 07:32 PM
  3. Replies: 1
    Last Post: 08-22-2010, 01:53 PM
  4. Summing values in report view
    By BigBear in forum Reports
    Replies: 2
    Last Post: 04-06-2010, 04:37 AM
  5. System lag when in report design view
    By vCallNSPF in forum Access
    Replies: 5
    Last Post: 12-10-2009, 08:38 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