473,883 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Export access data to excell

20 New Member
Greetings all.

Once more I must dip into the font of your collective wisdom and request help:

I have been given the task of taking an exsisting Access Query and exporting it to excel. There are hitches. The query has two groups of records "A" and "B".

The excel spread sheet needs to display Group "A" followed by the subtotals for select fields. Next a little white space then Group "B", again followed by sub totals. With Grand totals at the end.

I cant use an access report because it produces static information. My manager wants to be able to change data in the columns once its in excel and have the totals re-calculate.

My approach would be to run the Query from VBA for Group A pasting the results directly into an excel spread sheet, then paste the formual for total fields directly into the appropriate cell on the spread sheet. I could calculate the number of rows from the record count and the fields (columns) remain constant, this would tell me where to paste the formula for totals in the right cells.

I would then add a few rows for white space and redo the same steps for Group "B".

Questions: is this method more complicated then it needs to be, if so can someone point out the best way to accomplish this? If this is a reasonable approach Can some one help me get started with the code? IM not sure how to work with the excel spread sheet. I think I need to open it as an object then use the VB to place values in spread sheet. Once stated I can do the grunt work and get the query to work with the excel peice.

Thanks,

Beebelbrox.
Mar 13 '08 #1
0 1277

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1480
by: S. Graefner | last post by:
I have been unable to locate anywhere the answer to my problem. I would like to be able to download/import a single record. This record is stored in many different related (one to one) tables. I have saved a single record to Excell and then to a floppy by using a query, to save the parts of the record I want then "Save as" "Excell". The problem is being able to take it from the floppy/USB drive and import it to the same, but in a different...
3
25066
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown. eg. this only transferes the first record in the area. ..Fields("Uge").Value = ws.Range("A98").Value Sub SelectMaster()
2
1525
by: Andy48 | last post by:
Hi everyone, Can anyone point me in the direction of how to export a table, in excell format automatically via E-Mail? regards Andy48
9
1935
by: Hi5 | last post by:
Hi, I have designed a databasewhich is now able to store all data from my client's Excel sheet.Now I am looking for a good way to move their data into this Db. If I want to do this myself will it be enough to remove referentiol itegrities from all tables or I need to delete all raltionships? If I removed the relationships and entered data into the tables then how should I put back the relationship?
1
1511
by: shahoo | last post by:
Hi there , can anyone please tell me how I can access the data stored in a MS Access & Excell through c++ ? I have searched this group for a similar topic ,but they use VC++ and MFC.I want something except this. Thanks P.S : If I have any gramatically mistakes ,please forgive me because I am not a native English.
1
9783
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm having I'd be most appreciative. The database is already constructed, I'm just wanting to export the data to an excel file. In short, I'm hoping to export two Tables (or queries...not sure which to use - they both seem to have the same data) in...
2
1559
by: jiaudheen | last post by:
hi i have a gridview which has 5 columns and atleast 100 rows. i enabled sorting and paging. totally i have 10 rows in a page and hence i have 10 pages. i need to export ths grid view to a ms-excell. i havent developed any codes since i'm a fresher in .net. i need detailed c# code for this task. pls can any one help...... thanks...
2
1456
by: Aniasp | last post by:
hi Please let me know the procedure to post data from MS-Access to MS-Excell using ASP ! as well as Excell to Access ! Plz ! Thanks.
2
5732
nirmalsingh
by: nirmalsingh | last post by:
hai all, i need to export datagridview contents to a excell sheet including header. can anyone help me with sample code in c#. thanx in advance with Cheers Nirmal
0
11164
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...
1
10864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10422
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
7980
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
5807
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6008
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4623
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
4230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3242
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.