SELECT INTO an external database
- From: stebain@xxxxxxxxx
- Date: Wed, 29 Aug 2007 08:03:11 -0700
Is there a way to select into a table in another database?
I have a db that contains master information on a series of tests. I
want to be able to make a subreplicant of the database that contains
only test information for a particular usergroup.
So, for instance, I use the docmd.transferdatabase to move the
structure of the database over to a newly created database. [Original
database = currentDb, new database = nDb]
Both databases now have a table named "Tests".
Is there a way to perform a select into from the currentDb.Tests table
to nDb.Tests?
(IE: "SELECT * INTO nDb.Tests FROM currentDb.Tests")
I'm familiar with ADO and DAO, but am having no luck coming up with
the proper search terms in order to find anything that is of any help.
(Currently, I am copying the data over and then performing a
nDb.Execute ("DELETE FROM Tests WHERE NOT (testUser="UserName"). I
would like to see if I could generate the database without ever
permitting other user information to enter it. [To appease a few
security concerns that were asked]
I realize I could perform a series of nDb.Execute ("INSERT INTO
Tests") for each record that matches in currentDb.Tests, but that
could be very slow.)
Ta very much.
Steve Albright
.
- Follow-Ups:
- Re: SELECT INTO an external database
- From: Rich P
- Re: SELECT INTO an external database
- From: Alan Forsyth
- Re: SELECT INTO an external database
- From: Larry Linson
- Re: SELECT INTO an external database
- Prev by Date: Re: Help!!! Visual Basic goof
- Next by Date: Re: Accessing .mdb data from a remote computer on a non asp application
- Previous by thread: Open Popup at Mouse DblClick Coordinates
- Next by thread: Re: SELECT INTO an external database
- Index(es):
Relevant Pages
|
|