Connecting Tech Pros Worldwide Help | Site Map

PRINTING REPORTS FROM QUERY IN EXCEL

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 18th, 2006, 12:05 AM
sulemanzia@gmail.com
Guest
 
Posts: n/a
Default PRINTING REPORTS FROM QUERY IN EXCEL

hi. i am working first time with query and reports. i have created a
database. i have reports and query. i have a button in my form by the
name of (View reports) if a user clicks on that button it opens another
form with 3 options
1) Problems all report
2) problems resolved
3) Problems not resolved
Now what i really want is when a user clicks on Problems all report it
should go directly into excel worksheet based on my query which i have
assigned and the width, column should be perfect in excel so then a
user can print. secondly same thing goes for problems resolved based on
my query which wil show all the problems which have been resolved and
should open it in excel with everything alligned and ready to print. i
know it is possible and i have been able to just print Problems all
based on report not with my query and the formatting was really bad. i
need to print reports based on my query directly in Excel worksheet
with everything perfectly formatted. any help will be really
appreciated.
Thanks alot


  #2  
Old July 18th, 2006, 06:15 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default Re: PRINTING REPORTS FROM QUERY IN EXCEL

There's nothing stopping you from using ADO to pump the data into a SS
template. That and some Excel VBA should do just fine.

  #3  
Old July 18th, 2006, 07:30 AM
Newbie
 
Join Date: Jul 2006
Location: Bulgaria
Age: 28
Posts: 6
Default

try makind an excel file with macros that will do all the formating and printing you need. Then after opening the query copy all the data, open the excel file and let the file paste /throuth the macro/ the data and do all the rest you need to be done.
  #4  
Old July 18th, 2006, 01:35 PM
sulemanzia@gmail.com
Guest
 
Posts: n/a
Default Re: PRINTING REPORTS FROM QUERY IN EXCEL

hey thanks for the reply. since i am a newbie in these reports and
query thing
can you explain me a little bit more. what kind of VB procedure i had
to type and what is an ADO and SS template.
i really appreciate that.
pietlinden@hotmail.com wrote:
Quote:
There's nothing stopping you from using ADO to pump the data into a SS
template. That and some Excel VBA should do just fine.
  #5  
Old July 19th, 2006, 02:05 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default Re: PRINTING REPORTS FROM QUERY IN EXCEL

Try this
http://www.mvps.org/access/modules/mdl0035.htm

you also might want to look for transferring your data to a template.
Otherwise, you're going to have to run AutoResize or whatever in code
in Excel

  #6  
Old July 19th, 2006, 04:15 AM
sulemanzia@gmail.com
Guest
 
Posts: n/a
Default Re: PRINTING REPORTS FROM QUERY IN EXCEL

hi. the website sounds good. let me give you a little bit of idea what
i will be doing tomorrow. i will be creating a standard module and copy
the code on the website. now i was reading on the website the author
said to use the copy from recordset which he prefers more so i will
try to concentrate on that part of code to see if it works or not.
secondly and last since i have a button in my form which takes directly
to the excel worksheet what kind of onclick procedure you think i
should create with the standard module on the website?
Thanks
Sub sCopyFromRS()

pietlinden@hotmail.com wrote:
Quote:
Try this
http://www.mvps.org/access/modules/mdl0035.htm
>
you also might want to look for transferring your data to a template.
Otherwise, you're going to have to run AutoResize or whatever in code
in Excel
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.