Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Append Data In Worksheet To Access Table

There is an Access table on the network. 15 users who do not have Access are
connected to the network. Is there a way for each user to be able to enter one
or more rows containing 3 or 4 columns to Excel on his machine and then press a
button or something and append that data to the Access table on the network?
Also would need to delete the data from the worksheet after the append. How
would I prevent more than one user from appending data at the same time? Any
suggestions on what the code would be?

Thank you very much!

Martin



  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Append Data In Worksheet To Access Table

Hi Martin,

Please lookin to "TransferSpreadsheet" in the help of Access.


--
Kind Regards
Colo
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Colo of 'The Road of The Cell Masters' :)

URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


"Martin" wrote in message
k.net...
There is an Access table on the network. 15 users who do not have Access

are
connected to the network. Is there a way for each user to be able to enter

one
or more rows containing 3 or 4 columns to Excel on his machine and then

press a
button or something and append that data to the Access table on the

network?
Also would need to delete the data from the worksheet after the append.

How
would I prevent more than one user from appending data at the same time?

Any
suggestions on what the code would be?

Thank you very much!

Martin




  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Append Data In Worksheet To Access Table

Colo,

Thank you for responding!

I want each Excel user to be able to independently append data to the Access
table.

Martin


"Colo" wrote in message
...
Hi Martin,

Please lookin to "TransferSpreadsheet" in the help of Access.


--
Kind Regards
Colo
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Colo of 'The Road of The Cell Masters' :)

URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


"Martin" wrote in message
k.net...
There is an Access table on the network. 15 users who do not have Access

are
connected to the network. Is there a way for each user to be able to enter

one
or more rows containing 3 or 4 columns to Excel on his machine and then

press a
button or something and append that data to the Access table on the

network?
Also would need to delete the data from the worksheet after the append.

How
would I prevent more than one user from appending data at the same time?

Any
suggestions on what the code would be?

Thank you very much!

Martin






  #4   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Append Data In Worksheet To Access Table

Here's some example code to be run from an Excel workbook, but not the
workbook you are querying to avoid the memory leak bug (MSDN Q319998).
In absence of any detail, I've made inventions and assumptions e.g.
MyWorksheet is arranged as a database and has two columns headed
'Col1' and 'Col2' with data below etc. Post back if you require more
details.

'<code---------------
Sub test1()

Dim oCon As Object
Dim strSql As String

Set oCon = CreateObject("ADODB.Connection")

oCon.Open = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\Server\Folder\MyDatabase.mdb"

strSql = "INSERT INTO MyTable (RefID, Surname)" & _
" SELECT T1.Col1 AS RefID, T2.Col2 AS Surname" & _
" FROM [MyWorksheet$] T2 " & _
"IN 'C:\MyWorkbook.xls' 'Excel 8.0;'"

oCon.Execute (strSql)

oCon.Close

End Sub
'</code---------------

--


"Martin" wrote in message ink.net...
Colo,

Thank you for responding!

I want each Excel user to be able to independently append data to the Access
table.

Martin


"Colo" wrote in message
...
Hi Martin,

Please lookin to "TransferSpreadsheet" in the help of Access.


--
Kind Regards
Colo
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Colo of 'The Road of The Cell Masters' :)

URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


"Martin" wrote in message
k.net...
There is an Access table on the network. 15 users who do not have Access

are
connected to the network. Is there a way for each user to be able to enter

one
or more rows containing 3 or 4 columns to Excel on his machine and then

press a
button or something and append that data to the Access table on the

network?
Also would need to delete the data from the worksheet after the append.

How
would I prevent more than one user from appending data at the same time?

Any
suggestions on what the code would be?

Thank you very much!

Martin




  #5   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Append Data In Worksheet To Access Table

Exactly how many groups did you cross- and multi-post to? Did you
re-post to all these groups to say you have already received "a great
response!!!"? Apparently not.

--

"Martin" wrote in message ink.net...
Colo,

Thank you for responding!

I want each Excel user to be able to independently append data to the Access
table.

Martin


"Colo" wrote in message
...
Hi Martin,

Please lookin to "TransferSpreadsheet" in the help of Access.


--
Kind Regards
Colo
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Colo of 'The Road of The Cell Masters' :)

URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


"Martin" wrote in message
k.net...
There is an Access table on the network. 15 users who do not have Access

are
connected to the network. Is there a way for each user to be able to enter

one
or more rows containing 3 or 4 columns to Excel on his machine and then

press a
button or something and append that data to the Access table on the

network?
Also would need to delete the data from the worksheet after the append.

How
would I prevent more than one user from appending data at the same time?

Any
suggestions on what the code would be?

Thank you very much!

Martin




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
Using Excel VBA: sending output data table to created .csv file +append Options Mike Excel Discussion (Misc queries) 1 December 10th 11 12:39 PM
Export Single Record to Append to Access Table RMS Excel Discussion (Misc queries) 1 December 9th 08 07:08 PM
append worksheet with data from another Mark B Excel Worksheet Functions 3 May 8th 08 06:19 PM
excel worksheet export into access table H. Chudhary Excel Worksheet Functions 0 January 23rd 08 02:26 PM
How to Append the Data to the Master Table Shiva Excel Worksheet Functions 7 November 8th 05 05:00 AM


All times are GMT +1. The time now is 02:52 AM.

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

About Us

"It's about Microsoft Excel"