Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel to Access

Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the Excel
file is updated. Or, is it possible to create an access database that will
include the web queries that are created in an excel file?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel to Access

In access, can't you link to an excel range and create a database from that?

--
Regards,
Tom Ogilvy


"Todd Hudson" wrote in message
...
Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the Excel
file is updated. Or, is it possible to create an access database that

will
include the web queries that are created in an excel file?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel to Access

That may be possible, however, I run the query every evening and would like
the info to be transferred directly to the access database. Otherwise, is it
possible to use excel as a database in coldfusion? If that is true, it would
be much easier just to use the excel file as a database.

"Tom Ogilvy" wrote:

In access, can't you link to an excel range and create a database from that?

--
Regards,
Tom Ogilvy


"Todd Hudson" wrote in message
...
Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the Excel
file is updated. Or, is it possible to create an access database that

will
include the web queries that are created in an excel file?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Excel to Access

Todd'
you asked about using Excel as a database alone w/out Access.
What is the max # of records and fields would you have in any table?

I have an excel "db" with 65000 records and 39 fields that I can sort,
filter,search,add/delete/edit records.

Does this meet your requirements?

"Todd Hudson" wrote:

That may be possible, however, I run the query every evening and would like
the info to be transferred directly to the access database. Otherwise, is it
possible to use excel as a database in coldfusion? If that is true, it would
be much easier just to use the excel file as a database.

"Tom Ogilvy" wrote:

In access, can't you link to an excel range and create a database from that?

--
Regards,
Tom Ogilvy


"Todd Hudson" wrote in message
...
Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the Excel
file is updated. Or, is it possible to create an access database that

will
include the web queries that are created in an excel file?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel to Access

Thanks gocush,

I think that will work, I don't have nearly that many records. Do you use
coldfusion, I will be.

Thanks,
Todd

"gocush" wrote:

Todd'
you asked about using Excel as a database alone w/out Access.
What is the max # of records and fields would you have in any table?

I have an excel "db" with 65000 records and 39 fields that I can sort,
filter,search,add/delete/edit records.

Does this meet your requirements?

"Todd Hudson" wrote:

That may be possible, however, I run the query every evening and would like
the info to be transferred directly to the access database. Otherwise, is it
possible to use excel as a database in coldfusion? If that is true, it would
be much easier just to use the excel file as a database.

"Tom Ogilvy" wrote:

In access, can't you link to an excel range and create a database from that?

--
Regards,
Tom Ogilvy


"Todd Hudson" wrote in message
...
Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the Excel
file is updated. Or, is it possible to create an access database that
will
include the web queries that are created in an excel file?

Thanks





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Excel to Access

From Access you can use DoCmd.TransferSpreadsheet to either link ("live"
updates) or import("snapshot") the Excel data - see the Help file in Access
for details. As far as updating whenever Excel updates, there is no way for
Access to know when the Excel file has been updated without some sort of
two-way communication going on - meaning either a link or some code in the
Excel workbook that triggers an export to Access. But you should be able to
set up an import routine in Access and run it when you start up the Access
app, or when you press a button, or even linked to a timer if desired.

And I am sure that with some creative VBA coding in Access you could import
directly off the web, duplicating a web query, but that is not something I
have any direct experience with...

"Todd Hudson" wrote:

Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the Excel
file is updated. Or, is it possible to create an access database that will
include the web queries that are created in an excel file?

Thanks

  #7   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Excel to Access

Link to the xl file range.
fileget external datalink tables. follow the wizard.
this link will be just like an access table and can be use
anyway an access table can be used.
I do it all the time. keeps the size of the access db
down, save disk space by eliminating redundunt data.
Why have the same data in two places?

-----Original Message-----
Is it possible to have an access database updated from an

Excel
workbook/worksheet. I want the database to be updated

everytime the Excel
file is updated. Or, is it possible to create an access

database that will
include the web queries that are created in an excel file?

Thanks
.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel to Access

But, do I have to do this each and every time I want to update the database?
That would be rediculously tedious. I have some 20-30 worksheets and the
range changes daily.

" wrote:

Link to the xl file range.
fileget external datalink tables. follow the wizard.
this link will be just like an access table and can be use
anyway an access table can be used.
I do it all the time. keeps the size of the access db
down, save disk space by eliminating redundunt data.
Why have the same data in two places?

-----Original Message-----
Is it possible to have an access database updated from an

Excel
workbook/worksheet. I want the database to be updated

everytime the Excel
file is updated. Or, is it possible to create an access

database that will
include the web queries that are created in an excel file?

Thanks
.


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Excel to Access


Todd Hudson wrote:
Is it possible to have an access database updated from an Excel
workbook/worksheet. I want the database to be updated everytime the

Excel
file is updated. Or, is it possible to create an access database

that will
include the web queries that are created in an excel file?


It seems to me you want to detect the change in Excel in real time and
notify the database of the changes at this time e.g. open an ADO
connection and issue some SQL (this would discount using the MS Access
app).

What changes are being made? If it was a user editing a worksheet, I'd
suggest using an event (e.g. Worksheet_Change) and issuing an INSERT
INTO (new row) or UPDATE (amended row) command with the appropriate
column values or a DELETE command. To be able to associate a row in
Excel with its corresponding row in the database, I think you will need
to use a key column(s) common to both and use it in the aforementioned
command. You'd also have to lock down some columns/rows to try to avoid
the illogical things users are apt to do (deleting the column
containing the key values or the header row, destroying row continuity
by shifting down cells, etc) but allow then to flag a row as new or for
deletion.

If it is a bulk change (e.g. following the refresh of an embedded
query) you'd again need a key to be able to make a comparison to the
data in the database to detect which rows are to be
inserted/amended/deleted. With Jet, you can create JOINs in SQL between
the data in Excel and the .mdb to see these changes. See a previous
post by searching google groups for the exact phrase, "basic 'template'
for comparing".

....Unless the database is being used as a 'dumb' data store, then you'd
just DROP the table (unless it was a 'history' table with a timestamp
column <g)and SELECT..INTO to recreate using all Excel rows in one
hit.

Jamie.

--

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Getting Access Error Messages when running Access through Excel Dkline[_2_] Excel Programming 0 October 12th 04 09:35 PM


All times are GMT +1. The time now is 05:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"