Results 1 to 6 of 6

Thread: How to run a report with the click of a button. - [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    How to run a report with the click of a button. - [RESOLVED]

    Greetings,

    I have a report in place, now I just need to run it at the click of a button on an Access form. The button is called "cmdStep3", the report is called "rpt_FSR_Details", and the form and report are both in the database called "FinancialRecords".

    Here is what I have, somebody please help me fill in the event, so that the reprot can be run on the click:

    Private Sub cmdStep3_Click()
    'run rpt_FSR_Details
    End Sub

    Thank you,
    Jim
    Last edited by JimMuglia; Jul 21st, 2005 at 01:02 PM.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: How to run a report with the click of a button.

    VB Code:
    1. Private Sub cmdStep3_Click()
    2.    Docmd.OpenReport "rpt_FSR_Details"
    3. End Sub
    Tengo mas preguntas que contestas

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    Re: How to run a report with the click of a button.

    Thank you Salvelinus, I was able to figure that one out after checking out Northwind. One thing I want to figure out now is this:

    Once a report is generated, is there an easy way to shoot the Print Preview report to, say, Excel? I went to "Analyze with Excel" and it looks like hell, nothing like the report itself.

    What I'm sayng is that, sure, I can print out the hard copy fine for someone; but what if they want me to email it to them? How would I do that? When I go to save the report, you can only save it into a database. That does me no good; I need a soft copy of the report that I can email to someone. Any ideas?

    Before you say it, I already know that there is a Send To...Mail Recipient item in the File menu. However, my email is accessed from the yahoo web page, so that doesn't apply to my situation.

    Thank you,
    Jim
    Last edited by JimMuglia; Jul 21st, 2005 at 12:28 PM.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to run a report with the click of a button.

    What if you analyzed it with Word? I think it would look better.
    Unless you had Acrobat (Full version) you would
    have a convert to pdf which would make it loook good and anyone can DL Reader for free to view it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: How to run a report with the click of a button.

    CutePDF Writer is a print emulator that will create a .PDF of whatever is sent to the it.
    I use it to save trees when developing reports.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    Re: How to run a report with the click of a button.

    Quote Originally Posted by RobDog888
    What if you analyzed it with Word? I think it would look better.
    Unless you had Acrobat (Full version) you would
    have a convert to pdf which would make it loook good and anyone can DL Reader for free to view it.
    Its looking pretty sharp in PDF. Thanks for resolving my issue, RobDog888.

    Guess I'll put my next series of questions, in another post.

    Thanks again,
    Jim

Posting Permissions

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



Click Here to Expand Forum to Full Width