Results 1 to 16 of 16

Thread: Generating A report in Access

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    133

    Re: Generating A report in Access

    No not a quer, its a report. I solved it i had no AppAccess.Visible = True so this is my code now and it shows the report

    VB Code:
    1. Dim AppAccess As Access.Application
    2.  
    3.     Set AppAccess = New Access.Application
    4.     AppAccess.Visible = True
    5.    
    6.     With AppAccess
    7.         .OpenCurrentDatabase "D:\Documents and Settings\christopher.lynch\Desktop\Manual Time And attendance\\Manualrecords.mdb"
    8.         .RunCommand acCmdWindowHide
    9.         .RunCommand acCmdAppMaximize
    10.         .DoCmd.OpenReport "Manual", acViewPreview
    11.        
    12.        
    13.     End With

    How can i only show the report and not the access background and is it possible to send the report to a printer aswell
    11 is the magic number

  2. #2
    Lively Member
    Join Date
    Dec 2004
    Posts
    121

    Re: Generating A report in Access

    Basically what you did was invoke the Access Application through VB code. You can return the recordset to a windows form or use Crystal Reports instead of Access. There is plenty of help on the internet and on this forum for you to figure this out. MSDN is a good place to start. Ultimately, the report has a record source which is a either a query, a table or a sql statement.

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