Printing Access reports with Excel using VBA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charvi
    New Member
    • May 2007
    • 121

    #1

    Printing Access reports with Excel using VBA

    can i generate more than 1 excel sheets when a command button is clicked
    for eg
    i search for 2 names of audit dept and click print command button where records will be printed in excel
    again if i search for other 2 names and if i click print command button reports will not be printed.and gives error i have to close the program and load the program again
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by charvi
    can i generate more than 1 excel sheets when a command button is clicked
    Yes .

    Comment

    • charvi
      New Member
      • May 2007
      • 121

      #3
      Originally posted by charvi
      can i generate more than 1 excel sheets when a command button is clicked
      for eg
      i search for 2 names of audit dept and click print command button where records will be printed in excel
      again if i search for other 2 names and if i click print command button reports will not be printed.and gives error i have to close the program and load the program again

      i can generate but i cannot put the import data from access only once i is possble and if i close an if i run again i can

      i get error object variable with block variable not set

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by charvi
        i can generate but i cannot put the import data from access only once i is possble and if i close an if i run again i can

        i get error object variable with block variable not set
        I believe this is being covered in another discussion thread.

        Comment

        Working...