473,503 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How distinguish Test/Prod copies of DB for user?

To comp.databases.ms-access --

I'm running Microsoft Access 2003 on Windows XP Professional. I have
a "Test" version and a "Production" version of our database, with the
same dataset name, but located in different paths (folders). I'd like
to find a way to always display on the screen, when the database is in
use, whether it is the "Test" version or the "Production" version.
Any ideas? Note that I do not want to do anything which would make
the 2 database versions different from each other (including giving
them different dataset names), since I frequently copy them, back and
forth, between Test and Production.

I'm thinking along the lines of an "Autoexec" macro, that would run
some VBA code, to check what the path is, when the database starts
up ... but I'm not sure how to display this information to the user,
so that it would be clearly visible at all times. Thanks for any
help! Best,

--Tom
frethoa AT aol DOT com

Oct 8 '07 #1
2 1372
On Oct 8, 4:08 pm, Tom_F <fret...@aol.comwrote:
To comp.databases.ms-access --

I'm running Microsoft Access 2003 on Windows XP Professional. I have
a "Test" version and a "Production" version of our database, with the
same dataset name, but located in different paths (folders). I'd like
to find a way to always display on the screen, when the database is in
use, whether it is the "Test" version or the "Production" version.
Any ideas? Note that I do not want to do anything which would make
the 2 database versions different from each other (including giving
them different dataset names), since I frequently copy them, back and
forth, between Test and Production.

I'm thinking along the lines of an "Autoexec" macro, that would run
some VBA code, to check what the path is, when the database starts
up ... but I'm not sure how to display this information to the user,
so that it would be clearly visible at all times. Thanks for any
help! Best,

--Tom
frethoa AT aol DOT com
Put this in the form_load event:
me.caption = application.CurrentDb.Name

or put this in the ToolTip property of a label:
Label1.ToolTip = application.CurrentDb.Name

or create a label...
Label1.Caption = application.CurrentDb.Name

Oct 8 '07 #2
"Tom_F" <fr*****@aol.comwrote in message
news:11**********************@o3g2000hsb.googlegro ups.com...
To comp.databases.ms-access --

I'm running Microsoft Access 2003 on Windows XP Professional. I have
a "Test" version and a "Production" version of our database, with the
same dataset name, but located in different paths (folders). I'd like
to find a way to always display on the screen, when the database is in
use, whether it is the "Test" version or the "Production" version.
Any ideas? Note that I do not want to do anything which would make
the 2 database versions different from each other (including giving
them different dataset names), since I frequently copy them, back and
forth, between Test and Production.

I'm thinking along the lines of an "Autoexec" macro, that would run
some VBA code, to check what the path is, when the database starts
up ... but I'm not sure how to display this information to the user,
so that it would be clearly visible at all times. Thanks for any
help! Best,

--Tom
frethoa AT aol DOT com
In your test folder create a text file called test.txt (doesn't matter what
it contains).

On your main form create a label with the caption "This is the test
database" and set its visible property to False. Call the label
"lblTestNotice".

In the form's OnLoad event, put the following code:

Dim strPath As String, strName As String

strName = CurrentDb.Name
strPath = Left(strName, InstrRev(strName, "\"))
Me.lblTestNotice.Visible = (Dir(strPath & "test.txt") <"")

The label will only be visible when the database has been launched from the
test folder.
Oct 8 '07 #3

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

Similar topics

1
2216
by: André Rosendaal | last post by:
Hi, I need a test so I can determine whether a url points to a text file or to a binary file. Actually, I need to distinguish between streaming files and metafiles (e.g. asx files). I tried...
0
1576
by: Irmen de Jong | last post by:
Hi, when using the hotshot profiler, I can see no difference in the measurement of a function that is busy eating CPU cycles, and a function that is blocking/waiting on IO (or sleeping)... For...
0
2282
by: Jussi Mononen | last post by:
Hi, I'm having problems to successfully execute the test scripts on a Compaq host ( OSF1 tr51bdev V5.1 2650 alpha ). Almost all tests end up with the following error message "PARI: *** ...
12
3803
by: Jan Roland Eriksson | last post by:
I have worked some more on this suggested new mFAQ version trying to get all user input to blend into the text. Another review by the NG would be welcome. ===== Archive-name:...
13
3931
by: Bob | last post by:
Hello: I could use some regular expression help. I'm trying to create a client-side javascript function that will test user input to determine the markup of text that has been copied into a...
4
2411
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
4
1873
by: Adam - Regus | last post by:
I'm trying to create a button that prints 2 copies of a form. Using the wizard, I created a button that prints one automatically, using the following code: End Sub Private Sub...
1
1540
by: aj | last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1 I went to restore a backup of my production DB on my test/developmental server. The backup on the prod system was taken /before/ alt_obj() was used there to do...
2
9996
by: hcaptech | last post by:
This is my Test.can you help me ? 1.Which of the following statement about C# varialble is incorrect ? A.A variable is a computer memory location identified by a unique name B.A variable's name...
0
7199
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
7074
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
7322
jinu1996
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...
1
5000
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...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
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...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
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...

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.