473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Automate Import from Access to SQL Server through VBA in a ADP....

Hello,
I have a monthly dump that comes to us in access format. That dump
needs to be imported into sql server(Fromt end ADP) as part of the
monthly update routine. The process should go something like this:

1) ADP form opens up
2) click the update button
3) locate the .MDB
4) *VBA Code in the ADP imports the tables

* = Havn't figured this one out yet....

Can I just use SQL statements for this or is it going to be
complicated?

Thanks,
Chuck

Nov 13 '05 #1
3 2223
me*****@yahoo.com wrote:
Hello,
I have a monthly dump that comes to us in access format. That dump
needs to be imported into sql server(Fromt end ADP) as part of the
monthly update routine. The process should go something like this:

1) ADP form opens up
2) click the update button
3) locate the .MDB
4) *VBA Code in the ADP imports the tables

* = Havn't figured this one out yet....

Can I just use SQL statements for this or is it going to be
complicated?

Thanks,
Chuck


Have you looked at using DTS for this? Much faster because it's not logged and
easy to schedule.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
Thanks I think this will work out great....
When I save it as a .bas file how can I call that from VBA (not VB) in
the ADP. ?

Nov 13 '05 #3
You don't have to save it as a .bas file. After you create your DTS
package, go to Access and include the DTS object library. Then you can
call it programmatically.
HTH
Pachydermitis

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: dog | last post by:
I'm looking for some help. I have 3 Access 2002 db's. Access1, Access2 & Access3. I need to write some code in a module in Access1 which will: Open my Access2 db and Import some tables into...
1
by: tjones8611 | last post by:
I have an application that updates a CSV file every 10 minutes. I am trying to use Access to append the information in the csv file to a table. The csv file does not append the new data, row 1 is...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
0
by: Chanus | last post by:
Hi experts, Can anyone tell me how I can automate "Get External Data" command to import a XML file? I'm looking to build a macro in ACCESS. Any help will be greatly appreciated. Thanks again.
3
by: John Marble | last post by:
I have around 400 excel files filled with data that I need to import in ACCESS. The tricky part is that they must be imported one at time, and properly corrected before importing the next one. I...
2
by: Phil Latio | last post by:
We have despatch process which kicks out picking information into text files at hourly intervals. The text files are named sequentially by process; 'ABC.txt', 'ABC01.txt', 'ABC02.txt' for one...
0
by: Jill Elaine | last post by:
I want to automate the import of 5 encrypted .db (Paradox) tables into a MS Access 2002 database every time the Access database is opened. I think I could use the TransferDatabase method to import...
11
by: David Lozzi | last post by:
Hello, I need to automate importation of a excel file into a table. Here's my scenario: I'm writing an ASP.NET application where users can pull reports on imported data. The imported data is...
1
by: jgscott3 | last post by:
Dear Access Developers: I need to automatically import a file into Access from the same directory every day. However, I need the code to search the files in the directory and only import the...
5
by: NarayanaR | last post by:
Hello, I'm new to Office(!) but not to programming. I have a requirement that I'm struggling to solve: 1. In Access, I import a List from a sharepoint site as a linked table. 2. I delete all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.