Re: VBA - Testing Links to tables
From: Mary Chipman (mchip_at_online.microsoft.com)
Date: 06/16/04
- Next message: brian: "Loop through each DB"
- Previous message: Cowboy \(Gregory A. Beamer\) [MVP]: "Re: Track DB Growth"
- In reply to: rob: "VBA - Testing Links to tables"
- Next in thread: rob: "Re: VBA - Testing Links to tables"
- Reply: rob: "Re: VBA - Testing Links to tables"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 10:20:33 -0400
You can execute a stored procedure by creating a pass-through query in
VBA code by creating a DAO QueryDef object and setting its connection
and SQL properties. You can prompt the user for security credentials
and test the connection prior to executing this code, and cache the
connection string in a global variable for reuse in the application.
-- Mary
Microsoft Access Developer's Guide to SQL Server
http://www.amazon.com/exec/obidos/ASIN/0672319446
On Wed, 16 Jun 2004 09:27:43 -0400, "rob" <rwc1960@bellsouth.net>
wrote:
>Using an Access 2000 database and linked SQL tables...
>
>Before running a procedure which will replace data in the local Access db
>with data from SQL server, I would like to test that a "good" connection
>exists betweeen each SQL server table and the Access database. (I do not
>want to replace the data if I cannot get a "complete" set over.)
>
>Is there a preferred way to do this ? Any code examples or books that
>cover the topic ?
>
>Thanks !
>
>
- Next message: brian: "Loop through each DB"
- Previous message: Cowboy \(Gregory A. Beamer\) [MVP]: "Re: Track DB Growth"
- In reply to: rob: "VBA - Testing Links to tables"
- Next in thread: rob: "Re: VBA - Testing Links to tables"
- Reply: rob: "Re: VBA - Testing Links to tables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|