My question is based on the following scenario:
If you put two MDB files on a network share such as:
\\ServerName\Shared1\Main.mdb
\\ServerName\Shared1\Temp1.mdb
You can copy a table from Main.mdb to Temp1.mdb as follows:
From Main.mdb:
Select Field1, Field2, Field3 into Test in
'\\ServerName\Shared1\Temp1.mdb'_
from qryFinal;
If Main.mdb and Temp1.mdb are copied to another directory, what would
be the syntax of the select statement -- as long as both MDB files are
in the same directory?
Any help appreciated!
RBollinger 3 1658
I just read my own post and got confused! Cheezzzzz
What I'm asking is simply: What is the VBA used to create a table in
another MDB file that is in the same directory as the first MDB file
(i.e., so the two MDB files can be placed in any directory and still
work)
The first example there are two mdb files:
Direcory C:\Shared1
Main.mdb
Temp1.mdb
From Main.mdb if you can execute:
Select Field1, Field2, Field3 into Test in _
'C:\Shared1\Temp1.mdb' from qryFinal;
But what is the syntax if you want it to work regardless of the
directory you execute it from?
Something like ? ? ?
Select Field1, Field2, Field3 into Test in _
'.\Temp1.mdb' from qryFinal;
Thanks,
RBollinger
Use the Currentdb.Name property to determine the full path of the
current database. Parse the name to determine the path, and construct
the name of the second MDB file accordingly.
On 7 Jul 2004 13:18:39 -0700, ro*****@hotmail.com (R Bolling) wrote: I just read my own post and got confused! Cheezzzzz
What I'm asking is simply: What is the VBA used to create a table in another MDB file that is in the same directory as the first MDB file (i.e., so the two MDB files can be placed in any directory and still work)
The first example there are two mdb files:
Direcory C:\Shared1 Main.mdb Temp1.mdb
From Main.mdb if you can execute: Select Field1, Field2, Field3 into Test in _ 'C:\Shared1\Temp1.mdb' from qryFinal;
But what is the syntax if you want it to work regardless of the directory you execute it from?
Something like ? ? ?
Select Field1, Field2, Field3 into Test in _ '.\Temp1.mdb' from qryFinal;
Thanks,
RBollinger
********************** ja**************@telusTELUS.net
remove uppercase letters for true email http://www.geocities.com/jacksonmacd/ for info on MS Access security
Thank you -- brilliant solution
Jack MacDonald <ja**************@telus.net> wrote in message news:<tm********************************@4ax.com>. .. Use the Currentdb.Name property to determine the full path of the current database. Parse the name to determine the path, and construct the name of the second MDB file accordingly. On 7 Jul 2004 13:18:39 -0700, ro*****@hotmail.com (R Bolling) wrote:
I just read my own post and got confused! Cheezzzzz
What I'm asking is simply: What is the VBA used to create a table in another MDB file that is in the same directory as the first MDB file (i.e., so the two MDB files can be placed in any directory and still work)
The first example there are two mdb files:
Direcory C:\Shared1 Main.mdb Temp1.mdb
From Main.mdb if you can execute: Select Field1, Field2, Field3 into Test in _ 'C:\Shared1\Temp1.mdb' from qryFinal;
But what is the syntax if you want it to work regardless of the directory you execute it from?
Something like ? ? ?
Select Field1, Field2, Field3 into Test in _ '.\Temp1.mdb' from qryFinal;
Thanks,
RBollinger
********************** ja**************@telusTELUS.net remove uppercase letters for true email http://www.geocities.com/jacksonmacd/ for info on MS Access security This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joshua Beall |
last post by:
Hi All,
I am working on a registration system, and one of the things I am going to
need to be able to do it setup the database tables for each event that I
have registration for. Normally I...
|
by: Ed Hawkes |
last post by:
I am having the following problem and any help would be GREATLY
appreciated:
In an application I am developing, at some points we create a new
table. When I create this table on another users...
|
by: Neil |
last post by:
I have an Access 2000 MDB with ODBC linked tables to a SQL Server 7 back
end. I currently have a selections table in the front end file which the
users use to make selections of records. The table...
|
by: Random Person |
last post by:
Does anyone know how to use VBA to relink tables between two MS Access
databases? We have two databases, one with VBA code and the other with
data tables. The tables are referenced by linked...
|
by: cj |
last post by:
I have lots of tables to copy from one server to another. The new
tables have been created to match the old ones. I practiced with one
table. I created the select command (select * from tableA)...
|
by: rdemyan via AccessMonster.com |
last post by:
My App has 10 or so tables that we provide that contains proprietary data.
This data will need to be updated once or twice a year.
I would like some comments, suggestions on my proposed strategy...
|
by: astolpho |
last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output:
...
|
by: thadson |
last post by:
Hi,
I'm trying to import specific cells from MS Excel 2000 spreadsheets to MS Access 2000 tables then move the spreadsheets to a different directory.
I'm very new to this and I'm having trouble...
|
by: veaux |
last post by:
Adobe has WAY to many forums and I wasn't sure which was correct so
thought I'd try here first. I'm trying to see if there is a product
that will allow us to create a large (1,100 pg) directory,...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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,...
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |