473,471 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I have a query that is exporting to excel. How do I hide the null columns on the exc

5 New Member
I have an access query that is outputting to an excel spreadsheet. How do I hide the null colmns on the excel spreadsheet when it opens. Thanks
Aug 12 '10 #1
6 2276
NeoPa
32,556 Recognized Expert Moderator MVP
What do you mean by "the null columns" Debbie?
Aug 12 '10 #2
Debbie link
5 New Member
I have an access query that I am export to a excel spreadsheet. I the query there is a column with all null values. I can not hide that query column since it has all null values. So on the excel spreadsheet when it opens can the column with the null values be hidden. My code to export the query to an excel sheadsheet is DoCmd.OutputTo acQuery, "QryFSforOutput", "MicrosoftExcelBiff8(*.xls)", "", True, "", 0
Aug 12 '10 #3
Debbie link
5 New Member
I have a query that has a column with null values so I am exporting it to an excel spreadsheet. My code to export to an excel spreadsheet is DoCmd.OutputTo acQuery, "QryFSforOutput", "MicrosoftExcelBiff8(*.xls)", "", True, "", 0
Is there I way I can hide that column with null values in my spreadsheet when it opens?
Aug 12 '10 #4
NeoPa
32,556 Recognized Expert Moderator MVP
There should be, but my guess would be that it would be more easily accomplished by changing the query so that it doesn't include the column with all Nulls. Am I barking up the right tree here do you think?
Aug 12 '10 #5
Debbie link
5 New Member
I wrote a union query that combines 3 columns into 1 column. The 3 fields that made up the columns have names. When I run the query I get the right results (see I had criteria). How on the query can I can the column name to the right criteria selected. I know I can not explain myself well and it may not be possible but thanks.
Aug 12 '10 #6
NeoPa
32,556 Recognized Expert Moderator MVP
Debbie: (see I had criteria). How on the query can I can the column name to the right criteria selected. I know I can not explain myself well and it may not be possible but thanks.
I understood everything you said up to the beginning of the quoted text. Unfortunately, from this point on it's like Martian.

If you could just repost this, but read it first to ensure it makes sense, I'm sure we can help. If nothing more than to tell you it's not possible (in which case I suspect there'd be other ways around it).
Aug 12 '10 #7

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

Similar topics

1
by: GERALD SHAW | last post by:
ACC97... I have a database which is connected to an excel spread sheet using MS query.. Using Access, I am used to setting up within a queries criteria, the following is Null Or this...
3
by: kscheu via AccessMonster.com | last post by:
I am using OutputTo to export a query to excel, prompt the user to save as and then open the excel file. See below: DoCmd.OutputTo acOutputQuery, "q701ExportFields", acFormatXLS, , True 'Opend...
5
by: Simon | last post by:
Dear reader, With the export command you can export a query to Excel. By activate this command a form pop's up with the following text:
3
by: austin1539 | last post by:
I am trying to run an Access query from Excel. The query, called "ProdActs1" works in Access and is run from using information from a table called "Queries". When a button is clicked in Excel, data...
3
jamjar
by: jamjar | last post by:
Trying to Export the results of a Query to Excel without having the user have to leave the Switchboard. Tried DoCmd.OpenQuery "myQuery" DoCmd.RunCommand acCmdExport DoCmd.Close...
3
by: Remaniak | last post by:
Hi All, I use the code below in my form to filter data. But I also need to export the data to excel. So I'd like to create a temporary query based on the strWhere and export that query to excel....
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
2
by: Comandur | last post by:
Hi, I am trying to export an access query to excel. I have made use of transferspreadsheet command to achive this. However i have hardcoded the path and the filename in the VBA code. I am not sure...
3
by: JimCarlson | last post by:
I've created a macro in Access 2003 to output a query into Excel. I have scheduled a Windows XP task to run daily to run the macro. I want the current values in the query to overwrite the current...
5
by: dowlingm815 | last post by:
the following is a vba query that is to null fields, however, the fields are NOT being null out. any suggestions would be appreciate. the code is as follows: Private Sub...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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: 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: 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 ...
0
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.