473,466 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access 2007 multiple queries to specific Excel Worksheet/cells

1 New Member
Ok, I'm definitely a noob when it comes to vba code so bear with me. What I'm attempting to do is update an Excel 2007 workbook with several sheets. A few sheets are used to compile a pivot table.

In Access I have 3 tables and 2 queries that need to update specific cells within those workbooks. For example, the qExample1 query from Access is going to update Excel Sheet1 entering from cell B5 and down to however many rows the query returns. The second tExample1 (table) will update Excel Sheet2 entering from cell B5 and down. The others are the same. To simplify I want them all entering each sheet at cell B5.

I've tried to go the other way, from Excel opening connections to the Access DB but I get reference errors that I can't seem to find (and would rather not pursue).

Any help would be appreciated.
Aug 29 '11 #1
1 1878
NeoPa
32,556 Recognized Expert Moderator MVP
Rob Bartle:
I've tried to go the other way, from Excel opening connections to the Access DB but I get reference errors that I can't seem to find (and would rather not pursue).
I have a strong suspicion you'll be changing your mind on this shortly ;-)

It is possible (though somewhat painful) to create or overwrite data from an Access Export into a specific worksheet of an Excel workbook. This leaves you still with a reuirement to manipulate that data as you've specified where you want the data to go. That gets a little messy and requires Application Automation. Not for the feint-hearted, though not rocket-science either.

On the other hand, importing from Access into Excel can be done using MS Query and, assuming you can successfully design the query ok, can provide exactly the functionality you need. I suppose it's not that straightforward, but as long as you're methodical and get the details right it will work for you.

You should be aware that the SQL flavour used in MS Query is somewhat different from Jet SQL (as used in Access) so if you decide to amend what's created for you automatically then do it with care, replacing only like with like where possible.
Aug 29 '11 #2

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

Similar topics

5
by: hmiller | last post by:
Hey there folks: I have been trying to get this work for about a week now. I'm new to VBA... I am trying to transfer a populated table in Access to an existing, but blank, Excel worksheet. I...
1
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...
3
by: garethfx | last post by:
Hi Guys Just a thought. I'm using the "output to" action a macro (successfully) to populate an excel spreadsheet. No issues there. However, has anyone used this command to set the output to a...
2
by: Suzanne801 | last post by:
Hi, I am new to VB and trying to get Excel output from Access 2007-Report using: DoCmd.OutputTo acOutputReport, rptName, acFormatXLSX, OFileName, True I keep on getting: Run-time error...
4
by: myemail.an | last post by:
Hi all, I use Access 2007 and have the following problems: when exporting banal select queries (either to Excel or to a csv file) I find that exporting often doesn't work and creates a file with...
10
Nathan H
by: Nathan H | last post by:
I am curious if this is possible to do. I have a case scenario where I need to export data from an access table into an excel spreadsheet, and have that data start on row 5. Can't do it from Excel...
5
by: quicknk | last post by:
Is there a way in MS Access 2007 to export specific rows out of the specified table? Say I have a database with just 1 table called "contact numbers" and in this table I just have 2 field on is the...
0
by: prashantdixit | last post by:
Hi, I have beent trying importing Excel data with one column containing PDF/JPEG file name to access 2007. I have a Excel file with few columns One of the columns named as "Reference". The...
1
by: Smore | last post by:
Would like to create a button on a form to find an excel worksheet that has a matching product code and production date. The excel sheet may be in one of several workbooks in folders divided by...
2
by: ghiey | last post by:
hi to all, i have searched for a solution regarding exporting access 2007 reports to excel file. i have converted to access 2007 my database from access 2003. i guess microsoft omitted the ease...
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
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...
1
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...
0
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...
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,...
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: 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...
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 ...

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.