473,395 Members | 1,631 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,395 software developers and data experts.

Automating Table Import Via Code

I am using Access to analyze data in a remote SQL server. I cannot
"link" these tables, because Access doesn't like the SQL's replication
ID, so I need to import these table each time I run a report to ensure
I get the latest data, therefore:

I would like to run the following procedure, and assign it to a button
on a form:

1) Delete the following tables:
- dbo_ActivityPurposeTypes
- dbo_AnalysisChecklistItems
- dbo_AreaTypes
- dbo_Bays
- dbo_Companies
- dbo_LeaseBaseRents
- dbo_Leases
- dbo_Users

2) Run an import, which connects to an ODBC DSN on my PC called
JOKE.DSN, and import the above same tables

Can anyone walk me through this ? I'm relatively new to code, but I
know my way around Access pretty well.

Any help would be ever so greatly appreciated, and please email me as
well as post, since I don't get to log on here as often as I'd like.

Thanks
Shai
ny****@yahoo.com

Apr 5 '06 #1
0 1178

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

Similar topics

2
by: EricP | last post by:
I'm trying to figure out how to print from IE 6.0 using Python's Win32all com library. When I do from win32com.client import Dispatch from time import sleep ie =...
1
by: Dave N | last post by:
I have a list box with the directory path of an OLE object and I want to automate adding the object to my tblEmbededObjectst table when a Save button is pressed. I can import them manually but con...
0
by: Chanus | last post by:
I'm trying to automate a series of commands in ACCESS to import a data file in XML format. Normal procedure: -Start "MS Access" -Click "File->Get External Data->Import" -Choose the appropriate...
3
by: Jerome Ranch | last post by:
I collect information from people via an xls file...columns are fixed (name and number), rows are variable. It has validation rules for data entry in some fields. Currenty I just import the xls...
1
by: Liam.M | last post by:
HEY GUYS, need some urgent help here....I am querying my database based on a DueDate field...and want to send an automated email to anyone that falls within two months PRIOR to this "DueDate",...
4
by: access-newb | last post by:
Just started working in Access, and while I'm fairly confident in the basics, or so I think, anything advanced doesn't work too well. I've got a task I know should be easy to automate, but I don't...
2
by: cmp80 | last post by:
Hi everyone, I will need to start importing data from an XML file into our Access database on a daily basis. I have tried to import the data directly into a table, but it separates out into...
7
oll3i
by: oll3i | last post by:
i want to change the values in two columns one colum is a combobox and the secons column is editable too i want to get the value of that second column and the value of combobox and sent that...
11
by: KingKen | last post by:
Database A is distributed across 21 different agencies in a wide geographic area. They all use Access 2007 to run the database. Head office has a copy of database A and would like to have it store...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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
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...

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.