473,809 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ 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 2292
NeoPa
32,579 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 ", "MicrosoftExcel Biff8(*.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 ", "MicrosoftExcel Biff8(*.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,579 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,579 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
1810
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 allows me the option to either pick
3
3114
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 Excel Automatically Now I want to add a row to the opened spreadsheet at the top and add a title. How do I accomplish this? I am new to excel formatting, but I created a macro and the code to do this is: Rows("1:1").Select Selection.Insert...
5
31928
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
7990
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 currently in the table is deleted and new data is sent based on cell value on the Excel worksheet. So far, I can delete the old records and add new data. I just cannot seem to return results from the query "ProdActs1". Also, is it possible to specify...
3
3196
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 acQuery but the query stays open waiting for export parameters (filename, file location, file type) to be filled out be the user. And I'm not getting the query to close. Actually, it behaves quite strangely when I try to step through it (in that it...
3
6351
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. Could anyone modify the code for me? cheers Michiel
1
10513
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 trying to export to Excel using a command in an Access Form. RowID strFY AccountID CostElementWBS 1 2008 1 7 2 2008 1 7 I want to...
2
2083
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 as to how i can make the user enter his ownfile name and select the location where the file is to be written. I am attaching below my code: Private Sub Report_Click() On Error GoTo Err_Report_Click Dim db As DAO.Database
3
2955
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 spreadsheet and I want this to happen automatically without user receiving a prompt that the dataset already exists and do they want to replace it. Can I delete the file in my macro prior to outputing the query? If so how? Or is there a way I can...
5
1523
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 Update_Pending_Rec_Dates() On Error GoTo Err_Hndlr
0
9721
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
9600
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
10633
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
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10375
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
10114
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...
0
9198
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5548
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
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.