PC Review


Reply
Thread Tools Rate Thread

Add a column to excel from access

 
 
vjp2.at@at.BioStrategist.dot.dot.com
Guest
Posts: n/a
 
      29th Jul 2011
I did a series of 80 searches on a million-record mdb but I forgot to request
one field. I pasted each result into excel, so the header is the field name.
Is there a way I can get access to produce the missing column?



- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.panix.com/~vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]




 
Reply With Quote
 
 
 
 
Ken Snell
Guest
Posts: n/a
 
      1st Aug 2011
You can use Automation in ACCESS VBA to open an EXCEL file, and manipulate a
spreadsheet within that file essentially the same way you can use EXCEL VBA
to manipulate a spreadsheet inside the file.

Easiest way to identify what VBA code structure and objects and methods
you'd need would be to record a macro in EXCEL as you manually "add" the
column. Then view the EXCEL VBA code and modify it to work from ACCESS.
There are many, many examples of Automation in the newsgroups; a search on
"EXCEL Automation from ACCESS" will return thousands of examples.

This "article" from my web pages shows how to use Automation to write data
from ACCESs into EXCEL columns; it should also give you some starting
points/ideas:
Write Data From a Recordset into an EXCEL Worksheet using Automation (VBA)

http://www.accessmvp.com/KDSnell/EXC...m#WriteRstFile


--

Ken Snell
http://www.accessmvp.com/KDSnell/


<(E-Mail Removed)> wrote in message
news:j0v7b3$64e$(E-Mail Removed)...
>I did a series of 80 searches on a million-record mdb but I forgot to
>request
> one field. I pasted each result into excel, so the header is the field
> name.
> Is there a way I can get access to produce the missing column?
>
>
>
> - = -
> Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
> http://www.panix.com/~vjp2/vasos.htm
> ---{Nothing herein constitutes advice. Everything fully disclaimed.}---
> [Homeland Security means private firearms not lazy obstructive guards]
> [Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]
>
>
>
>



 
Reply With Quote
 
vjp2.at@at.BioStrategist.dot.dot.com
Guest
Posts: n/a
 
      4th Aug 2011
Might I be able to do something like:

=SQL.REQUEST(c:\dog.mdb,Select tag from dog where paw=a2)

All the refs I've seen are too confusing with mutliple references to
the database and so on.

Of course I will use quotes and ampersnad to build the query string...


- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.panix.com/~vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I update one column in access from one column in excel Rodger.Harris Microsoft Access External Data 1 23rd Jun 2008 11:35 PM
Access/Excel: Create multiple Lines/Column out of one mulit-line Column? Julian Microsoft Excel Discussion 2 28th Feb 2006 04:06 PM
format an excel column from within access? Eric Microsoft Access 2 12th Jan 2005 01:29 PM
when import EXCEL to ACCESS, the date format excel column title changed... Amolin Microsoft Excel Misc 8 25th Jun 2004 08:56 AM
Help!!..Access to Excel export-modify Excel column default width Gary S Microsoft Access External Data 0 22nd Sep 2003 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:34 PM.