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

I was wondering if there is code I could write that
updates a table in Access through Excel. I have the exact
setup of the tabel in Excel. It is only 1 column
called "Job Number" and I have a matching table in
Access. Iwant the user to enter a job number and when he
hits a command button, I want the code to update the
Access table with what he has entered. Is that possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default update Access Table in Excel

If you link the Excel Sheet to your Access DB any changes
in either will change the other - real time. It's
redundent to have two "tables" of mutually exclusive
data. You only need the Excel file or the database.
Then link them. If it were me I'd create the Excel file
and link it to an Access DB. To link (NOT import) the
Excel to an Access DB open your Access DB. Click Tables,
then right click in the white area where the tables are
stored. Click Link. Select XLS under file type, find
your file, double click it, and that's it.

Marty


-----Original Message-----
I was wondering if there is code I could write that
updates a table in Access through Excel. I have the

exact
setup of the tabel in Excel. It is only 1 column
called "Job Number" and I have a matching table in
Access. Iwant the user to enter a job number and when

he
hits a command button, I want the code to update the
Access table with what he has entered. Is that possible?
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default update Access Table in Excel

This might be a help for getting data to and from Excel and Access and how
to UPDATE records:
It includes examples of using variables in SQL queries.
http://www.bygsoftware.com/examples/sql.html

Or you can get there from the "Excel with Access Databases" section on page:
http://www.bygsoftware.com/examples/examples.htm

It demonstrates how to use SQL in Excel's VBA to:

* create a database,
* create a table and add data to it,
* select data from a table,
* delete a table,
* delete a database.

DAO and ADO files available.

You can also download the demonstration file called "excelsql.zip".

The code is open and commented.


--
Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"



"shin" wrote in message
...
I was wondering if there is code I could write that
updates a table in Access through Excel. I have the exact
setup of the tabel in Excel. It is only 1 column
called "Job Number" and I have a matching table in
Access. Iwant the user to enter a job number and when he
hits a command button, I want the code to update the
Access table with what he has entered. Is that possible?



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
Excel update from Access Sharon A Excel Discussion (Misc queries) 0 June 14th 06 04:35 PM
Automatic Update from Access to EXcel Jay Excel Discussion (Misc queries) 0 February 11th 06 07:01 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
How can I update an MS Access table record from within Execl works David Canfield Excel Discussion (Misc queries) 0 January 14th 05 08:51 PM
How to update Access Table with Excell Data Kevin Jones Excel Programming 1 November 5th 03 06:19 PM


All times are GMT +1. The time now is 06:30 AM.

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"