473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Is VBA really the only way to ...

I have a table in my database called 'mktblUpdteFromPoll'

Is VBA really the only way to make a command button that exports this to a CSV file? I have attempted to research this both here in the scripts and on the general web and have only found a couple VBA posts that I cannot seem to duplicate.

I would greatly appreciate any words of advice!
Jan 29 '07 #1
3 1167
ADezii
8,834 Expert 8TB
I have a table in my database called 'mktblUpdteFromPoll'

Is VBA really the only way to make a command button that exports this to a CSV file? I have attempted to research this both here in the scripts and on the general web and have only found a couple VBA posts that I cannot seem to duplicate.

I would greatly appreciate any words of advice!
You do not have to be bothered with either VBA or Command Buttons. If you like, you can do the Export manually in only a couple of minutes. Here are the steps:

__1 Select the Table you wish to Export in the Database Window (mktblUpdteFromPoll)
__2 Select File, Export
__3 Select Save as type to Text Files (*.txt;*.csv;*.tab;*.asc)
__4 Enter a Filename
__5 In the first Export Wizard Screen, select Delimited, view the Sample export format screen and make any necessary changes by clicking the Advanced... button
__6 In the next screen, select Comma as the Delimiter.
__7 In the next screen, provide an Absolute Path to your previously defined Filename.
__8 Click Finish to Export to a *.csv Format.

-----------------------------------------------------------------------------------------------------------------

Option #2 is to create a Macro with only 2 Actions which will automate the process:

Select Object
___Object Type - Table
___Object Name - Your Table Name (mktblUpdteFromPoll)
___In Database Window - Yes

Transfer Text
___Transfer Type - Export Delimited
___Specification Name - <blank>
___Table Name - Your Table Name (mktblUpdteFromPoll)
___File Name - Absolute Path to Comma Delimited File (.txt extension)
___Has Field Names - Yes
___HTML Table - <blank>
___Code Page - <blank>

NOTE: As far as I know, there are no other Options without using VBA code.
Jan 29 '07 #2
MSeda
159 Expert 100+
No you can use a macro to do this. create a macro and choose "Transfer Text"
at the bottom choose export delimited and enter you table name and the destination including the name of the file and .txt.

hope this helps,
Megan
Jan 29 '07 #3
Thank you both. The macro worked, exactly what I needed to know!
Jan 29 '07 #4

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

Similar topics

1
by: Peter Young | last post by:
I'm seeing a problem with IE running on OS-X. When the user logs in to the website (ASP/IIS5), a Session is established properly, but somewhere along the line, a new Session is created and...
2
by: James | last post by:
Are there any style elements that work on select elements on Apple/IE? I want colored text, colored background, or just about anything colored in a select drop-down but can't seem to make it work...
35
by: Richard | last post by:
I finally got Mozilla installed and running just last week and wow... Nice work you Mozilla developers, you! And is it just me or does Mozilla really interpret/execute CSS code really well...
6
by: Zip Code | last post by:
"The large print giveth, and the small print taketh away.", so said Tom Waites in his classic rap, "Step Right Up", a paean about come ons and rip offs. Now, we have all explored the fact that...
9
by: vincent wang | last post by:
Microsoft has been pushing very hard behind .Net, but why haven't we seen any real action or plan that Microsoft is going to port its own software, especially Office onto .Net? If they don't want...
3
by: Roy Osherove | last post by:
Hi folks. I have an ASP.Net application that runs a .Net dll that uses WMI and ADSI(both managed) to connect to a given IIS root and search through it. When not using the ASP.Net client, but...
131
by: pemo | last post by:
Is C really portable? And, apologies, but this is possibly a little OT? In c.l.c we often see 'not portable' comments, but I wonder just how portable C apps really are. I don't write...
23
by: mike3 | last post by:
Hi. I seem to have made some progress on finding that bug in my program. I deactivated everything in the bignum package that was used except for the returning of BigFloat objects. I even...
0
by: raylopez99 | last post by:
I ran afoul of this Compiler error CS1612 recently, when trying to modify a Point, which I had made have a property. It's pointless to do this (initially it will compile, but you'll run into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.