473,804 Members | 3,353 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

If Hidden BackEnd BE not found then supress error revealing its location?

Hello

Split DB (FE & BE) Linked. FE compiled to MDE.

For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access Error
reports exactly where the Backend is. This blows my attempt at hidding
the Backend file. I have tried to use the DIR() statement to look for
the BE in my FormOpen of my 1st form but it seems to be ignored.

Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden ?

Thanks Greg

Jul 14 '06 #1
17 1936
Show us the code for your DIR test.

(david)

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello

Split DB (FE & BE) Linked. FE compiled to MDE.

For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access Error
reports exactly where the Backend is. This blows my attempt at hidding
the Backend file. I have tried to use the DIR() statement to look for
the BE in my FormOpen of my 1st form but it seems to be ignored.

Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden ?

Thanks Greg

Jul 14 '06 #2
Private Sub Form_Open(Cance l As Integer)
On Error GoTo Err_Handler 'I also shut off the
err_handler
MsgBox Len(Dir("c:\bfd x\nlf94p.mdb")) ' test for file

ERROR MESSAGE I'm receiving:
Could not find file 'c:\bfdx\nlf94p .ocx'.

I change the name of the Backend DB to deliberately test for the
missing file. Then the
code runs in the Form_Open and I recieve the error message. This Error
seems to occur before any code in the Form_Open executes. I know the
DIR statement works fine, because it properly tests for the file when
the file is renamed correctly.

david epsom dot com dot au wrote:
Show us the code for your DIR test.

(david)

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello

Split DB (FE & BE) Linked. FE compiled to MDE.

For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access Error
reports exactly where the Backend is. This blows my attempt at hidding
the Backend file. I have tried to use the DIR() statement to look for
the BE in my FormOpen of my 1st form but it seems to be ignored.

Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden ?

Thanks Greg
Jul 14 '06 #3
You need to change the startup in your FE to check for the BE before opening
any forms or reports that access BE data.

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello

Split DB (FE & BE) Linked. FE compiled to MDE.

For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access Error
reports exactly where the Backend is. This blows my attempt at hidding
the Backend file. I have tried to use the DIR() statement to look for
the BE in my FormOpen of my 1st form but it seems to be ignored.

Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden ?

Thanks Greg

Jul 14 '06 #4
Ron

I don't understand what you mean. I do not see any options in the
"Startup" allowing me to check for the BE. What I want to do is look
for the BE when the FE starts. I figured the place to do this is the
Form_Open of the FE. If I make this work, then I'll know if the BE
exists, or is gone. Then I can shut my app down. I DoNot want the FE
reporting that the BE is missing, and then displaying its path. For
security reasons, this will reveal my hidden backend. Not Good.

Thanks for Responding


paii, Ron wrote:
You need to change the startup in your FE to check for the BE before opening
any forms or reports that access BE data.

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello

Split DB (FE & BE) Linked. FE compiled to MDE.

For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access Error
reports exactly where the Backend is. This blows my attempt at hidding
the Backend file. I have tried to use the DIR() statement to look for
the BE in my FormOpen of my 1st form but it seems to be ignored.

Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden ?

Thanks Greg
Jul 14 '06 #5
Ron

Sorry! I do understand what you mean!
However, in my startup forms record source property contains a table I
need to use.
Is there a way around this, like calling it form code. Or do I need to
use the autoexec macro, or load a phantom form before my startup form ?
Any suggestions?

Greg

Ap******@gmail. com wrote:
Ron

I don't understand what you mean. I do not see any options in the
"Startup" allowing me to check for the BE. What I want to do is look
for the BE when the FE starts. I figured the place to do this is the
Form_Open of the FE. If I make this work, then I'll know if the BE
exists, or is gone. Then I can shut my app down. I DoNot want the FE
reporting that the BE is missing, and then displaying its path. For
security reasons, this will reveal my hidden backend. Not Good.

Thanks for Responding


paii, Ron wrote:
You need to change the startup in your FE to check for the BE before opening
any forms or reports that access BE data.

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello
>
Split DB (FE & BE) Linked. FE compiled to MDE.
>
For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access Error
reports exactly where the Backend is. This blows my attempt at hidding
the Backend file. I have tried to use the DIR() statement to look for
the BE in my FormOpen of my 1st form but it seems to be ignored.
>
Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden ?
>
Thanks Greg
>
Jul 14 '06 #6
You can use the autoexec macro, or create a new startup form that opens the
original after checking for the BE.

<Ap******@gmail .comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Ron

Sorry! I do understand what you mean!
However, in my startup forms record source property contains a table I
need to use.
Is there a way around this, like calling it form code. Or do I need to
use the autoexec macro, or load a phantom form before my startup form ?
Any suggestions?

Greg

Ap******@gmail. com wrote:
Ron

I don't understand what you mean. I do not see any options in the
"Startup" allowing me to check for the BE. What I want to do is look
for the BE when the FE starts. I figured the place to do this is the
Form_Open of the FE. If I make this work, then I'll know if the BE
exists, or is gone. Then I can shut my app down. I DoNot want the FE
reporting that the BE is missing, and then displaying its path. For
security reasons, this will reveal my hidden backend. Not Good.

Thanks for Responding


paii, Ron wrote:
You need to change the startup in your FE to check for the BE before
opening
any forms or reports that access BE data.
>
<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello

Split DB (FE & BE) Linked. FE compiled to MDE.

For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access
Error
reports exactly where the Backend is. This blows my attempt at
hidding
the Backend file. I have tried to use the DIR() statement to look
for
the BE in my FormOpen of my 1st form but it seems to be ignored.

Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden
?

Thanks Greg

Jul 14 '06 #7
Ron

I used the autoexec. But, I still get the Error Message First! Then
the result from the AutoExec macro reports that the file is missing.
NotGood?
paii, Ron wrote:
You can use the autoexec macro, or create a new startup form that opens the
original after checking for the BE.

<Ap******@gmail .comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Ron

Sorry! I do understand what you mean!
However, in my startup forms record source property contains a table I
need to use.
Is there a way around this, like calling it form code. Or do I need to
use the autoexec macro, or load a phantom form before my startup form ?
Any suggestions?

Greg

Ap******@gmail. com wrote:
Ron
>
I don't understand what you mean. I do not see any options in the
"Startup" allowing me to check for the BE. What I want to do is look
for the BE when the FE starts. I figured the place to do this is the
Form_Open of the FE. If I make this work, then I'll know if the BE
exists, or is gone. Then I can shut my app down. I DoNot want the FE
reporting that the BE is missing, and then displaying its path. For
security reasons, this will reveal my hidden backend. Not Good.
>
Thanks for Responding
>
>
>
>
paii, Ron wrote:
You need to change the startup in your FE to check for the BE before
opening
any forms or reports that access BE data.

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello
>
Split DB (FE & BE) Linked. FE compiled to MDE.
>
For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access
Error
reports exactly where the Backend is. This blows my attempt at
hidding
the Backend file. I have tried to use the DIR() statement to look
for
the BE in my FormOpen of my 1st form but it seems to be ignored.
>
Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is hidden
?
>
Thanks Greg
>
Jul 14 '06 #8
Ap******@gmail. com wrote:
Ron

I used the autoexec. But, I still get the Error Message First! Then
the result from the AutoExec macro reports that the file is missing.
NotGood?
You must run this test BEFORE any attempt is made by the app to hook into the
back end file. If you have a startup form specified in Options - Startup that
form will be loaded prior to the execution of the AuotExec macro.

The solution is to specify a form in startup that is hidden and unbound and that
has the sole purpose of running this test. If the file is found then that form
can close itself and open your "real" startup form.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jul 14 '06 #9
A new form would be my choice because the Dir() function can fail if the
path is invalid, which would crash your application if run from a macro.

"paii, Ron" <pa**@packairin c.comwrote in message
news:sc******** *************** *******@athenet .net...
You can use the autoexec macro, or create a new startup form that opens
the
original after checking for the BE.

<Ap******@gmail .comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Ron

Sorry! I do understand what you mean!
However, in my startup forms record source property contains a table I
need to use.
Is there a way around this, like calling it form code. Or do I need to
use the autoexec macro, or load a phantom form before my startup form ?
Any suggestions?

Greg

Ap******@gmail. com wrote:
Ron
>
I don't understand what you mean. I do not see any options in the
"Startup" allowing me to check for the BE. What I want to do is look
for the BE when the FE starts. I figured the place to do this is the
Form_Open of the FE. If I make this work, then I'll know if the BE
exists, or is gone. Then I can shut my app down. I DoNot want the FE
reporting that the BE is missing, and then displaying its path. For
security reasons, this will reveal my hidden backend. Not Good.
>
Thanks for Responding
>
>
>
>
paii, Ron wrote:
You need to change the startup in your FE to check for the BE before
opening
any forms or reports that access BE data.

<Ap******@gmail .comwrote in message
news:11******** *************@3 5g2000cwc.googl egroups.com...
Hello
>
Split DB (FE & BE) Linked. FE compiled to MDE.
>
For security reasons, I have hidden the BackEnd. However, If the
network is down or the FE can't find the Backend, then an Access
Error
reports exactly where the Backend is. This blows my attempt at
hidding
the Backend file. I have tried to use the DIR() statement to look
for
the BE in my FormOpen of my 1st form but it seems to be ignored.
>
Now do I detect ,right away, if the BackEnd is found so that I can
close down the app without it revealing where the BE file is
hidden
?
>
Thanks Greg
>


Jul 14 '06 #10

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

Similar topics

2
7550
by: Andrew | last post by:
I have a <div> section of text in my page that I want to make visible via an input check box associated with an OnClick javascript. I can do this OK but the problem is that the space for the hidden text is reserved on the page (i.e. thare is a gap). The user clicks the button to make the text visible or not visible. What I really want is for the page to expand (open up) to reveal the text if the user checks the box and contracts again if...
3
2102
by: DD | last post by:
Hi I have a split database, that is packaged and used in a runtime enviroment. I want to make it easier for the user, a button on the frontend "Export Backend" They can click on the button then search for the backend and then save the backend to a CD or Floppy.
1
4013
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the live databases on the network. Is there a way, via code, when I get back in-house from being on the road to click a button, and select the backends I want to link to? I would want to delete all the current links and link to the "live"
351
13171
by: CBFalconer | last post by:
We often find hidden, and totally unnecessary, assumptions being made in code. The following leans heavily on one particular example, which happens to be in C. However similar things can (and do) occur in any language. These assumptions are generally made because of familiarity with the language. As a non-code example, consider the idea that the faulty code is written by blackguards bent on foulling the language. The term...
4
1423
by: Mark | last post by:
Hi All, I created a database for a friend a few months ago which has been working fine. However, he now wants a few changes implemented to accommodate his growing needs. When I gave him the database, I split it in anticipation of this so that I could give him a replacement fromtend without affecting his existing data. My problem is that one of the changes he has asked for requires one of the tables altering. My plan was to run code the...
13
4922
by: rdemyan via AccessMonster.com | last post by:
My front-end code manually links to the backend file. I was wondering what stops Access from linking to the system tables in the backend file. Is it just by virtue that they are hidden? This has recently come up because I've been playing around with converting my front end to A2003 format. At some point, I had a corruption issue with a system file MSStorage something. Access kept saying it couldn't find it. When I looked in the db...
1
2195
by: pemigh | last post by:
I'm almost done with an application, and trying to lock it down tightly. But I still want users to be able to point to a new location for the data file. The code below fires off to detect and address the problem of a moved/renamed data file. The problem: WITHOUT the "tdf.Attributes = dbHiddenObject" line, my previously hidden tables are now visible. (Not that the users will normally have the chance to see them, hidden or not.)
3
2378
by: Fast Eddie | last post by:
Hi, We have an old MS Access frontend application which has a SQL Server backend. Recently the SQL Server database used as the backend was moved to a new server. I have updated the server location the ODBC DSN and it connects fine but when trying to use the MS Access application it is still pointing to the old server for some reason. I thought it would only be a matter of changing the server location in the ODBC but evidently the backend...
6
1931
by: bg_ie | last post by:
Hi, My company's backend is located at a location with a long address, something like - //our_servers/server_number_one/our_department/our_devision/ our_results/our_databases/backend.be I have tested the very same backend on another server with a sort path location at it works fine, but at the location above it is extremely
0
9711
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
10343
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
10331
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
10087
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...
0
9166
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7631
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...
0
5529
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.