Re: List box that will display file names???
- From: "Ben" <nospam@xxxxxxxxxxx>
- Date: Mon, 31 Jul 2006 09:56:48 +0100
Have you seen Klatuu's answer? Could be a possibility...
To be honest with you the code to accomplish this is just plain going to be
complex. As I understand it you wish to have the user choose a text file
from a directory, which will then import to a specification which you've
created, and thus allow them to create reports etc... based on the data.
Maybe it would be easier to just have your users use Access themselves -
show them how to choose file->get external data and navigate to your text
file directory. Essentially this is the exact functionality that you've
described!
Is there a reason this would be insufficient?
Ben.
"msanewbee" <msanewbee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E334859B-36E5-4119-8BA6-3FF9589D5BEF@xxxxxxxxxxxxxxxx
Okay...I'm guilty. I don't have a clue. I looked at the api0001, but I'm
not sure which part of that I would need. I'm willing to try some code
but I
don't even know where to put it. Could I have some more clues??
"Ben" wrote:
Hi Msanewbee,
This is certainly possible, but only using the Scripting.FileSystemObject
in
code to the best of my knowledge.
Easier, would be to use the Common File Dialog. Still need some code but
it
is simpler.
Check out http://www.mvps.org/access/api/api0001.htm
Don't get put off by the complexity of the code - the only bit you'll
need
to write is very simple. Anyway, maybe this is the perfect excuse to
start
learning!
Post again if you get stuck.
Ben.
"msanewbee" <msanewbee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1E06887E-67DE-4C19-82FD-8D8B449E2AE0@xxxxxxxxxxxxxxxx
I think I need a list box.....maybe I need something totally different.
This
is what I want to do:
Each night we get a .txt file. Each morning I load the .txt file(s)
into
a
table, using Get External/Import. Then via a form, the users can go a
their reports. I would like to have a form that will list (listbox?)
the
files (in a specific folder). Then the user the user could click on
the
file
they want to load, which would then load using the spec I set up. Then
they
could go to their form and get their reports, with no intervention from
me.
Is this even possible? Could there be a better/easier way to do
something
like this? Please keep in my I do not know vba code. Any advice would
be
greatly appreciated. Thanks :)
.
- Follow-Ups:
- Re: List box that will display file names???
- From: msanewbee
- Re: List box that will display file names???
- References:
- Prev by Date: Combo Box Pickle
- Next by Date: Re: IIF not working
- Previous by thread: Re: List box that will display file names???
- Next by thread: Re: List box that will display file names???
- Index(es):
Relevant Pages
|