473,657 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2237
me*****@yahoo.c om 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 programmaticall y.
HTH
Pachydermitis

Nov 13 '05 #4

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

Similar topics

4
1136
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 it which are in the Access3 db. Im a bit stuct because the transferdatabase method only alows me to import into the current db and not into another.
1
5933
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 just replaced with the new data every ten minutes. My goal is to capture the data in the csv file and keep a running log in Access. I have created a macro I can execute to retrieve the csv data and append it to a table, works great, now I would...
16
48866
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 a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free programs for creating PDF documents provided free by Russell Lang. The actual automation requires VBA...
0
1600
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
1801
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 already automated most of the formatting task of the raw data, and I am wondering if it is possible to automate the original importation too (like when I click on FILE>Import). Anyone have an idea?
2
2709
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 process, or 'XYZ.txt', 'XYZ01.txt' for another process. The folder contents would look like this; ABC.txt ABC01.txt
0
1373
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 the .db tables, but, since these tables are encrypted, I need to provide a password at the start of the import. Unfortunately, the .db tables are created as part of an application: I cannot unencrypt the tables nor set the password to...
11
1879
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 pulled from an old UNIX based system, then converted to Excel. I want the user to be able to use the web app to select and upload the file to the server, then press a button to have the SQL server process the Excel file and import it. I know I can do...
1
2228
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 one with the current day's date in the file name (otherwise, the file name will not change). Alternatively, Access could just import the one with the most recent save date. Can anyone provide code to do this?
5
11801
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 the data in the list. 3. I import an Excel file from my local system onto this linked table. 4. Save and close. How can I automate this?
0
8324
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8617
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
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 we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.