473,511 Members | 16,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Append specific Data From SQL Server To MS Access Table

30 New Member
Hi!
I was wondering if it is possible to get the specific data coming from SQL Server 2000 and append it to my MS Access Table through VB Code????
If it so, please advise me on how i can do this kind of importing Data.

Thank You
Jun 17 '08 #1
3 1507
mafaisal
142 New Member
Hello

Create 2 Connection 1 for sql And another for Access
Using First connection Select Fields from SqlTable

Then Insert or update int Acces using 2 Connection

Faisal
Jun 17 '08 #2
Serenityquinn15
30 New Member
Thank You for the Information. However, I created this code so far but i dont know why isn't working, here's my code:

Dim strSql As String

strSql = "INSERT INTO OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source=" & App.Path & "\Extract.MDB;')...[Sam_Timedata] ([EmployeeID],[Pin],[Timedata],[Count],[InOut],[strEmployeeID]) " & _
"SELECT EmployeeID, Pin, Timedata, Count, InOut, strEmployeeID From dbo.Timedata;"
adCon.Execute strSql (FYI: adCon is my SQL Server Connection)

The Error say's "OLE/DB provider returned msg"Microsoft.Jet.OLEDB.4.0','Data Source=" & App.Path & "\Extract.MDB' is not a valid path. Make sure that the path name is spelled correctly and that your are connected to the server on which the files resides."


but actually, when i checked the path it was correct and I dont know what the system means about this,.. Any Advise. thank you.
Jun 18 '08 #3
debasisdas
8,127 Recognized Expert Expert
it seems you lack basic knowledge of connection and SQL.

Please refer to Howtos section of VB in the forum for some related articles.
Jun 18 '08 #4

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

Similar topics

4
13451
by: Martin | last post by:
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...
1
2471
by: David Barger | last post by:
Greetings, It appears that an Append Query I run in Access XP is randomly failing to append a field. I have payroll data being entered into a payroll database. This data is exported daily to...
5
5346
by: Michael C via AccessMonster.com | last post by:
Hello, I have a table that I am appending 3 seperate tables into. My main problem is that each time I append the data, it simply adds to the data already there. That might sound ok, except that...
4
7045
by: robboll | last post by:
When I try to use an append query from an oracle link it takes forever. I am exploring the idea of doing an append action using a pass-through query. If I have an Oracle ODBC connection to...
3
8031
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
2
6184
by: nospam | last post by:
Hello, I am using Access 2000 and SQLServer 2000. I have 2 tables - one in Access and one in SS. They are identical in structure. I want to copy the Access or local table ( table_local) to...
2
2678
by: TroutmansRegistrar | last post by:
I have a web programming task that has me stumped. I hope that one of you could give me some insight or might know someone who could guide me in the right direction. This is the final piece of the...
14
6659
by: Supermansteel | last post by:
My team at work uses Cognos to run multiple queries to pull in data. Then they take that data and import into Access and then usually run an Append Query to run a RND function to pull out a few...
10
6731
by: MeeMee | last post by:
Hi I have a problem appending data into an oracle table from access. I imported the new data from an excel sheet into a table in access and useed an append query to add the data into a linked...
0
7242
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
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7418
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...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.