473,788 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ 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.TransferS preadsheet 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.Transfers preadsheet, 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.transfers preadhseet 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.transfers preadsheet option, if I could use code to doctor it up
some so it will do formatting of cells.
Nov 13 '05 #1
3 3002
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****@antarct ic.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
3496
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
1614
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. The input to this query is a fairly large (the example I'm working with has 335,000 rows) set of records containing numbers to be looked up in the lookup table. This lookup table has 239 rows.
3
2236
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 it. ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
0
2010
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
3636
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 actually takes 25 seconds on my computer (no other CPU intensive processes running). Is this normal for EXPLAIN ANALYZE to report a total runtime so vastly different from wall clock time? During the "explain ANALYZE delete from msgid;" the CPU is...
16
2219
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: Memory exhausted in AllocSetAlloc(1189) This error is in the FAQ, but that answer does not appear applicable. The error is occurring on 2 different databases, on multiple tables, and all tables involved are frequently updated.
0
1238
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. The table design is: ID_Agency; dte_appt; dte_time; int_nbrOfTimeSlots Here is the code (courtesy of this newsgroup and FredG)
1
7171
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 here: http://www.surveymonkey.com/_exportExamples/Examples.zip) , you end up with a folder with three html files: QuestionTable, ResponseTable, and TableOverview. You also end up with two subfolders: Excel and CSV. I've imported the excel files as...
1
1728
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 application analyses it, after the user selected the table. The problem is, i can't get the application to read the exportfile.
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7517
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
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 we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.