473,657 Members | 2,851 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 1382
On Oct 8, 4:08 pm, Tom_F <fret...@aol.co mwrote:
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.Cur rentDb.Name

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

or create a label...
Label1.Caption = application.Cur rentDb.Name

Oct 8 '07 #2
"Tom_F" <fr*****@aol.co mwrote in message
news:11******** **************@ o3g2000hsb.goog legroups.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(strNam e, "\"))
Me.lblTestNotic e.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
2236
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 getmimetype, but that does not seem te be reliab;e (dependent on the web server configuration). Can anyone help? The test should be something like: get url if isbinaryfile ($url) {
0
1587
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 instance I have this output: 3 function calls in 26.931 CPU seconds Ordered by: internal time, call count
0
2289
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: *** Invalid arguments to divll. at test_eng/Testout.pm line 30. ...propagated at t/polyser.t line 9. t/polyser.....dubious
12
3818
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: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: July 22, 2004
13
3964
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 textarea input field, then will insert html tags accordingly. So, the user writes up a document in word that contains instances of italics, bold, and underline. The user then copies the text of that document into my textarea field. I am trying...
4
2423
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) 3) production server (for when a new build is fully tested, and stable) The problem is that the connectionstring in the web.config, should be replaced with something else, for each of the enviroments.
4
1881
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 CSR_BeforeUpdate(Cancel As Integer) End Sub Private Sub PRINTFORM_Click()
1
1548
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 some schema evolution. The restore on the test box barfed on the roll forward because alt_obj() uses COPY YES on its LOAD, and the test box did not have the magic data COPY YES files (apparently they are in ~/sqllib/tmp?).
2
10023
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 is used to access and read the value stored in it C.A variable is allocated or deallocated in memory during runtime D.A variable can be initialized at the time of its creation or later 2. The.……types feature facilitates the definition of classes...
0
8385
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.