473,382 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Prevent file open while allowing file browsing?

I have an Access 2007 application running on a terminal server. One of
the features of the app is a wizard that allows them to create an
Excel spreadsheet by querying the Access data. When they create the
Excel spreadsheet, they have to be able to browse their folders to
choose the file location the spreadsheet will be saved to.

My concern is that when they are browsing for folder locations, they
have the ability to browse to and open other files, including the back-
end database for my application. I've set up my back-end to kick
unqualified users out upon login (using Access User Level Security),
and I've set the terminal server environment so that my app is the
initial program run and so it shuts down when my app is closed. Users
have no access to the server desktop or start bar. But the file
browsing provides a hole in my security. I'm wondering whether there's
a way to allow the user to browse to file locations while preventing
them from actually opening files.

?
Jul 20 '08 #1
1 2473
"evenlater" <ev*******@gmail.comwrote in message
news:66**********************************@f36g2000 hsa.googlegroups.com...
>I have an Access 2007 application running on a terminal server. One of
the features of the app is a wizard that allows them to create an
Excel spreadsheet by querying the Access data. When they create the
Excel spreadsheet, they have to be able to browse their folders to
choose the file location the spreadsheet will be saved to.

My concern is that when they are browsing for folder locations, they
have the ability to browse to and open other files, including the back-
end database for my application. I've set up my back-end to kick
unqualified users out upon login (using Access User Level Security),
and I've set the terminal server environment so that my app is the
initial program run and so it shuts down when my app is closed. Users
have no access to the server desktop or start bar. But the file
browsing provides a hole in my security. I'm wondering whether there's
a way to allow the user to browse to file locations while preventing
them from actually opening files.
If you don't mind a bit of copy 'n paste, you could try this:

http://www.smccall.demon.co.uk/MiscApi.htm#SelectFolder

Debug.Print SelectFolder("Please Select your Spreadsheet Folder")
Result: c:\XlFiles\ (for instance)
Jul 20 '08 #2

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

Similar topics

6
by: mscir | last post by:
I just installed ASP after a couple of years of not using it, PWS Win 98 SE. A couple of things are throwing me, and I can't remember whether these worked in the past. One is I can't...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
9
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
1
by: Babbling Brooke | last post by:
Dear Dudes, I have a hosted ASP.NET website, and I want to prevent HTTP access to my ..MDB database file. The following is in my web.config at root of website: .. . . <httpHandlers> <add...
2
by: Lyle Fairfield | last post by:
I am using Microsoft’s Web Browser Control embedded on an Access Form to browse a specific site. I have a good reason for doing so; the pages on this site run code which aborts their display unless...
0
by: ysh8o1 | last post by:
Hi, We upgraded our W2K for a W2K3 server at the beginning of the year. It's purpose is to handle TS distribution of a couple of MS-ACCESS 97 apps stored locally on the server. The server is...
2
by: postings | last post by:
Hi Currently I have some RSS displayed using this stylesheet: ---------------------------------------------------------------- <xsl:stylesheet version="1.0"...
5
by: NEWSGROUPS | last post by:
I have some users that continuously end task on my database when a search takes to long. In turn corrupting the application. Is there any way to prevent this? The Microsoft KB for Methods That Can...
0
by: evenlater | last post by:
I have an Access 2007 application running on a terminal server. One of the features of the app is a wizard that allows them to create an Excel spreadsheet by querying the Access data. When they...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.