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

Lookup and open files

jpr
Hello,

I would like to create a sort of lookup form with two listboxes. The
firts should read all the drives on my workstation. According to the
drive selected, the second listbox should display all the files it
containg. I would then need to open these files with the double click
event. I am not trying to replicate MyComputer functions but would like
to add this little tool to my database.

Any help or sample? Thank you.

Sep 28 '06 #1
5 1487
Well, looking here: http://mvps.org/access/api/api0003.htm will give
you all the drives. You could add these to a list box (or, treeview,
even better). On the click event, you could use the DIR function to
list all files in a second list box (bonus points for listview). Using
the double-click even:

Application.FollowHyperlink FullPathToFile

Chris Nebinger
jpr wrote:
Hello,

I would like to create a sort of lookup form with two listboxes. The
firts should read all the drives on my workstation. According to the
drive selected, the second listbox should display all the files it
containg. I would then need to open these files with the double click
event. I am not trying to replicate MyComputer functions but would like
to add this little tool to my database.

Any help or sample? Thank you.
Sep 28 '06 #2

jpr wrote:
Hello,

I would like to create a sort of lookup form with two listboxes. The
firts should read all the drives on my workstation. According to the
drive selected, the second listbox should display all the files it
containg. I would then need to open these files with the double click
event. I am not trying to replicate MyComputer functions but would like
to add this little tool to my database.

Any help or sample? Thank you.
This is a pure VB question. Only tangentially related to Access
insofar as VBA can do this kind of thing. Look it up on VBNET.
http://vbnet.mvps.org/

Sep 28 '06 #3
jpr
Thanks for your help. I have seen the code and paste it into a new
module. But I cannot get it to work as I am quite new to Access and do
not know much about VBA. Could anyone help me with some sample
database? Thanks.

Sep 29 '06 #4
Probably not. What you're asking is not a basic type question. It is
more immediate to advanced task.

I'll dig around what i have and see if there's anything that will do
what you want, but I wouldn't put your project on hold for it.

Chris Nebinger

jpr wrote:
Thanks for your help. I have seen the code and paste it into a new
module. But I cannot get it to work as I am quite new to Access and do
not know much about VBA. Could anyone help me with some sample
database? Thanks.
Sep 29 '06 #5
jpr
thanks for your reply. I appreciate your help. Perhaps you could guide
through the code you had suggested. Thanks.

ch************@gmail.com wrote:
Probably not. What you're asking is not a basic type question. It is
more immediate to advanced task.

I'll dig around what i have and see if there's anything that will do
what you want, but I wouldn't put your project on hold for it.

Chris Nebinger

jpr wrote:
Thanks for your help. I have seen the code and paste it into a new
module. But I cannot get it to work as I am quite new to Access and do
not know much about VBA. Could anyone help me with some sample
database? Thanks.
Sep 30 '06 #6

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

Similar topics

7
by: Marco Simone | last post by:
Hi, What is your opinion about using Lookup field in table. I would like to use lookup field in table 1, so that I can choose data in combo box from table 2. Is this good design of database? ...
1
by: James | last post by:
I am used to VB6 but need to develop something in .Net. I need to create several bound combo-boxes which will use lookup tables to get their values. I created a form using the dataform wizard....
3
by: jbsfe | last post by:
I have "Spilt" my database and the "lookup" and "seek" methods that previously worked, no longer do. I have learnd from reviewing the posts that the "lookup" and "Seek" methods cannot be used on...
4
by: keri | last post by:
Hi everybody, I'm very new to access so please treat me with kid gloves! (i'm hopeless with code and macros but enjoying learning). I am loving what it is capable of though, and i'm sure I...
3
by: larry | last post by:
Ok I am re-coding our apps in PHP and am looking for ways to make parts easily updateable, One of the challenges in my field (non-rpofit) are various lookup tables (for incomes etc). An example...
11
by: Paul H | last post by:
Suppose I have a table called tblPeople and I want a field to illustrate whether each person prefers cats or dogs. I could do it one of three ways. 1. A plain text field Create a text field in...
5
by: Andrus | last post by:
I'm creating a database Winforms application using VCS Express 2005 I have some large lookup tables (may be up to 500000 records) which contains name and id and are stored in sql server. I...
0
by: Omari Norman | last post by:
My program creates new XML files (not through the DOM, but just by simple file.write calls.) It would be nice if said files would be in the default system encoding. So in Python 2.5 I use ...
7
by: samdev | last post by:
I have set up a table with a few fields that are set to required....all work fine except the fields that are Lookup from another table. What am I forgetting to set? Thanks!!
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: 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:
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...
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
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...
0
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
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
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,...

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.