473,473 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Analyze It with MS Excel

Hello,
I have an Access 2000 database that I need to export certain queries
to Excel 2000. The problem is that I have to take the toolbars away
from the users for security purposes, but still let the users have the
ability to export to Excel using forms and buttons, using vba code I
write. I have attempted using the DoCmd.TransferSpreadsheet option,
but it does not look formatted the way the "Analyze It with MS Excel"
button does.

To compensate, I have recorded a macro in Excel and put some of the
vba code in my Access function after it exports and then opens the
Excel file. The freeze panes code works, but code for setting the
background color of cells or putting a border on them does not.

Is there a better way to export so instead of being so plain looking
with DoCmd.Transferspreadsheet, it will look exactly like the "Analyze
It with MS Excel". Also, the Analyze button spaces the column names
out, where the Docmd. option does not.

I have tried looking at the following page:
http://www.microsoft.com/technet/pro...art3/ch15.mspx
Under the heading "Creating Dynamic Reports with Query Tables in
Excel" but have been unsuccessfull in using the code provided, as it
throws errors about user type errors, and trying to get external data
in Excel doens't work right, as it won't let me add queries or tables
in.

Does anyone know of a better solution for exporting queries to excel
other than the Docmd.transferspreadhseet option, so it will look
exactly like the Analyze it button on the toolbar?

If able to do so in code, I will even use the
docmd.transferspreadsheet option, if I could use code to doctor it up
some so it will do formatting of cells.
Nov 13 '05 #1
3 2979
user_5701 wrote:
Hello,
I have an Access 2000 database that I need to export certain queries


I'd make a custom tool bar. Hold the ctrl key, click on the menu item
you want from the tool bar it's currently on and drag it to your custom
tool bar. Associate the tool bar with the form your queries are being
displayed on (don't just give the users a query, give them a form data
sheet or a form).

--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #2
I made the toolbar ok, and have the form load and unload the toolbar
when the form is opened and closed, but when I select an item from my
listbox, and click the Analyze button on the custom toolbar, an excel
window comes up with only two rows (one column) - the name of the
listbox in first row, and the selected value from the listbox in the
2nd row. It doesn't actually show any data from any queries. I think
i'm close, but now what do I have to do to get the queries to export?

Tim Marshall <TI****@antarctic.flowerpots> wrote in message news:<cm**********@coranto.ucs.mun.ca>...
user_5701 wrote:
Hello,
I have an Access 2000 database that I need to export certain queries


I'd make a custom tool bar. Hold the ctrl key, click on the menu item
you want from the tool bar it's currently on and drag it to your custom
tool bar. Associate the tool bar with the form your queries are being
displayed on (don't just give the users a query, give them a form data
sheet or a form).

Nov 13 '05 #3
user_5701 wrote:
I think
i'm close, but now what do I have to do to get the queries to export?


I'm afraid I can't answer you on that one as I don't bother with Excel
integration with Access. I was hoping the ability to get the menu item
you mentioned on a tool bar would solve your issues...

Hopefully someone else can help further here...
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Holger Marzen | last post by:
Hi all, the docs are not clear for me. If I want (in version 7.1.x, 7.2.x) to help the analyzer AND free unused space do I have to do a vacuum vacuum analyze or is a
3
by: Harry Broomhall | last post by:
I asked earlier about ways of doing an UPDATE involving a left outer join and got some very useful feedback. This has thrown up a (to me) strange anomaly about the speed of such an update. ...
3
by: Joseph Shraibman | last post by:
Trying this: VACUUM VERBOSE ANALYZE; on a 7.4.1 database only does a vacuum, not the analyze. I've tried this on two seperate databases. Is this a known bug? I haven't seen anything about...
0
by: Rajesh Kumar Mallah | last post by:
Greeting, Will it be an useful feature to be able to vacumm / analyze all tables in a given schema. eg VACUUM schema.* ; at least for me it will be a good feature.
5
by: Jon Lapham | last post by:
I have been using the EXPLAIN ANALYZE command to debug some performance bottlenecks in my database. In doing so, I have found an oddity (to me anyway). The "19ms" total runtime reported below...
16
by: Ed L. | last post by:
I'm getting a slew of these repeatable errors when running ANALYZE and/or VACUUM ANALYZE (from an autovacuum process) against a 7.3.4 cluster on HP-UX B.11.00: 2004-09-29 18:14:53.621 ERROR:...
0
by: emalcolm_FLA | last post by:
Hello and Thanks in Advance for help. I created a report that prints a line for as many time slots as entered in a table for an agency. ex: agency 1 get 9 slots for 8:00, 10 slots for 8:15, etc....
1
by: J | last post by:
I recently used SurveyMonkey to host an online survey and one of the options they offer is to download the data for a relational database. When you download the file, (you can download a sample...
1
by: =?Utf-8?B?TWVubm92ZHZlZW4=?= | last post by:
Goodday, I'm stuck building a .NET-application. The purpose of the application is checking for empty records in a database-exportfile. The user gives a 'csv, .xls or .sql file. The...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.