473,385 Members | 1,673 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,385 software developers and data experts.

Display System settings via drop down menu

I want to display via a drop down menu the "My Computer" component of a
computer system. I want to incorporate a backup function into an aplication
but want to be able to select from the drop down where to backup to. eg
C:Lo9cal drive, D: Cd Drive or E: Zip Drive.

Does anyone know if this is possible?

Scott :o)
Nov 13 '05 #1
3 1156
If you want the user to be able to select the drive and folder to write the
back up to, use the code from this link:
Call Windows Browse for Folder Dialog box
at:
http://www.mvps.org/access/api/api0002.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Scott" <sm****@ii.net> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
I want to display via a drop down menu the "My Computer" component of a
computer system. I want to incorporate a backup function into an
aplication
but want to be able to select from the drop down where to backup to. eg
C:Lo9cal drive, D: Cd Drive or E: Zip Drive.

Nov 13 '05 #2
Allen,

Thanks for your reply. I am hoping you don't mind helping here as I am
having a little difficulty with the suggested code.

I will paste my code below, but basically what I am trying to do is have a
button that I press which activates a zip function for backing up. The code
you suggested allows me to select the location, but for some reason will
only store the ziped files into the "My Documents" dir. If I had hair, I
would have pulled it all out by now.

Thanks again for any assistance you can offer.

Scott :o)

************Start Code***********************

Private Sub Zip_Tables_Now_Click()

Dim Zip, i

Set Zip = CreateObject("Zip.Cntrl")

Dim strFolderName As String

Zip.CreateZip "tables.zip", ""

strFolderName = BrowseFolder("Where do you want to back up your files to?")

If (DbName = "Cancel") Then

Beep

MsgBox "You must select a valid Location for your Tables!!", vbCritical

End If

i = DbName

Zip.AddFile i, ""

Zip.Close

Beep

MsgBox "Completed! Your file is zipped.", vbInformation
End Sub

************End Code***********************
Nov 13 '05 #3
Hi Scott.

You code seems to be using some kind of library/class that I don't
recognise, so can't comment.

The code accepts a folder name into the string variable strFolderName, but
does not appear to be using that folder name anywhere.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Scott" <sm****@ii.net> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Allen,

Thanks for your reply. I am hoping you don't mind helping here as I am
having a little difficulty with the suggested code.

I will paste my code below, but basically what I am trying to do is have a
button that I press which activates a zip function for backing up. The
code
you suggested allows me to select the location, but for some reason will
only store the ziped files into the "My Documents" dir. If I had hair, I
would have pulled it all out by now.

Thanks again for any assistance you can offer.

Scott :o)

************Start Code***********************

Private Sub Zip_Tables_Now_Click()

Dim Zip, i

Set Zip = CreateObject("Zip.Cntrl")

Dim strFolderName As String

Zip.CreateZip "tables.zip", ""

strFolderName = BrowseFolder("Where do you want to back up your files
to?")

If (DbName = "Cancel") Then

Beep

MsgBox "You must select a valid Location for your Tables!!", vbCritical

End If

i = DbName

Zip.AddFile i, ""

Zip.Close

Beep

MsgBox "Completed! Your file is zipped.", vbInformation
End Sub

************End Code***********************

Nov 13 '05 #4

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

Similar topics

3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
1
by: Smriti Dev | last post by:
Hi, I have a drop down menu with a listing of communities and I use it to select a community, selecting a letter ie. "T" , I get bumped to the "T" section to choose communities that start with...
10
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the...
4
by: simon.cigoj | last post by:
I have an javascript made menu and some forms with the dropdown element. When the menu opens and scrolls down the drop down is displeyed over the menu and obscures the menu choices. I have this...
4
by: cathy | last post by:
Hi All, I am having problems displaying content relevant to the option selected in a drop-down menu. I have an xml document which is running content through Flash and I need to have the same...
1
by: Bobc003 | last post by:
Hi, I'd like to put a double drop-down menu on my webpage and instead of a redirection to a new webpage, I'd like to display the result in a new section. I'm kind of stuck and I only have a triple...
2
by: vinceboy | last post by:
Hi anybody. I am newbie here and would like to know that how can I validate both drop down menu and radio button from a dynamic display form.Something went wrong with my script.The radio button is...
2
by: giandeo | last post by:
Hello all, It's almost a couple of weeks since i am struggling to get this code work. Unfortunately, i am stuck. There seems to be no hope... Please Help....... I am working with an asp page...
6
by: dkyadav80 | last post by:
Hi sir, I'm new about xml, javascript. I have two selection field(html) first is city and second is state. the city and state values should be store in xml file. when user select city then all...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.