PC Review


Reply
Thread Tools Rate Thread

Allen Browns List files recursively

 
 
StuJol
Guest
Posts: n/a
 
      1st Jun 2010
this is a query relating to allen browns List files recursively contribution
via http://allenbrowne.com/ser-59.html

brilliant contribution, works really well. the only issue i have is the full
path and filename are displayed in the list box, so my list box needs to be
the size of the screen to view full path.

Is there a way to just get the listbox to display the filename to the user
but to also keep the filename and path hidden so that the double click
hyperlink still works to open the documents??
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      1st Jun 2010
On Tue, 1 Jun 2010 04:56:04 -0700, StuJol
<(E-Mail Removed)> wrote:

That doesn't seem a good idea: several versions of a document by the
same name can occur in the tree. If I only show "test.doc", how would
the user know what to select?
That said, listboxes can have multiple columns, including invisible
ones.

-Tom.
Microsoft Access MVP


>this is a query relating to allen browns List files recursively contribution
>via http://allenbrowne.com/ser-59.html
>
>brilliant contribution, works really well. the only issue i have is the full
>path and filename are displayed in the list box, so my list box needs to be
>the size of the screen to view full path.
>
>Is there a way to just get the listbox to display the filename to the user
>but to also keep the filename and path hidden so that the double click
>hyperlink still works to open the documents??

 
Reply With Quote
 
StuJol
Guest
Posts: n/a
 
      1st Jun 2010
thaks for your comments tom,
there will only be one version of each document so i dont see it an issue,
can you explain how to get multiple columes and change the visibility??

"Tom van Stiphout" wrote:

> On Tue, 1 Jun 2010 04:56:04 -0700, StuJol
> <(E-Mail Removed)> wrote:
>
> That doesn't seem a good idea: several versions of a document by the
> same name can occur in the tree. If I only show "test.doc", how would
> the user know what to select?
> That said, listboxes can have multiple columns, including invisible
> ones.
>
> -Tom.
> Microsoft Access MVP
>
>
> >this is a query relating to allen browns List files recursively contribution
> >via http://allenbrowne.com/ser-59.html
> >
> >brilliant contribution, works really well. the only issue i have is the full
> >path and filename are displayed in the list box, so my list box needs to be
> >the size of the screen to view full path.
> >
> >Is there a way to just get the listbox to display the filename to the user
> >but to also keep the filename and path hidden so that the double click
> >hyperlink still works to open the documents??

> .
>

 
Reply With Quote
 
Tom van Stiphout
Guest
Posts: n/a
 
      2nd Jun 2010
On Tue, 1 Jun 2010 09:31:01 -0700, StuJol
<(E-Mail Removed)> wrote:

Sure. It's very simple. Since you are looping over a folder tree I am
assuming you're adding rows one at a time. Set the RowSourceType to
"ValueList". Then call AddItem for each row:
myList.AddItem(strFilename, strFilePath)
This would add one filename and one full path.
Then you can hide the Path column by setting the ColumnWidths property
to "1;0"

-Tom.
Microsoft Access MVP


>thaks for your comments tom,
>there will only be one version of each document so i dont see it an issue,
>can you explain how to get multiple columes and change the visibility??
>
>"Tom van Stiphout" wrote:
>
>> On Tue, 1 Jun 2010 04:56:04 -0700, StuJol
>> <(E-Mail Removed)> wrote:
>>
>> That doesn't seem a good idea: several versions of a document by the
>> same name can occur in the tree. If I only show "test.doc", how would
>> the user know what to select?
>> That said, listboxes can have multiple columns, including invisible
>> ones.
>>
>> -Tom.
>> Microsoft Access MVP
>>
>>
>> >this is a query relating to allen browns List files recursively contribution
>> >via http://allenbrowne.com/ser-59.html
>> >
>> >brilliant contribution, works really well. the only issue i have is the full
>> >path and filename are displayed in the list box, so my list box needs to be
>> >the size of the screen to view full path.
>> >
>> >Is there a way to just get the listbox to display the filename to the user
>> >but to also keep the filename and path hidden so that the double click
>> >hyperlink still works to open the documents??

>> .
>>

 
Reply With Quote
 
Tom van Stiphout
Guest
Posts: n/a
 
      2nd Jun 2010
On Wed, 02 Jun 2010 06:45:30 -0700, Tom van Stiphout
<(E-Mail Removed)> wrote:

Sorry, I meant:
myList.AddItem(strFilename & ";" & strFilePath)

>On Tue, 1 Jun 2010 09:31:01 -0700, StuJol
><(E-Mail Removed)> wrote:
>
>Sure. It's very simple. Since you are looping over a folder tree I am
>assuming you're adding rows one at a time. Set the RowSourceType to
>"ValueList". Then call AddItem for each row:
>myList.AddItem(strFilename, strFilePath)
>This would add one filename and one full path.
>Then you can hide the Path column by setting the ColumnWidths property
>to "1;0"
>
>-Tom.
>Microsoft Access MVP
>
>
>>thaks for your comments tom,
>>there will only be one version of each document so i dont see it an issue,
>>can you explain how to get multiple columes and change the visibility??
>>
>>"Tom van Stiphout" wrote:
>>
>>> On Tue, 1 Jun 2010 04:56:04 -0700, StuJol
>>> <(E-Mail Removed)> wrote:
>>>
>>> That doesn't seem a good idea: several versions of a document by the
>>> same name can occur in the tree. If I only show "test.doc", how would
>>> the user know what to select?
>>> That said, listboxes can have multiple columns, including invisible
>>> ones.
>>>
>>> -Tom.
>>> Microsoft Access MVP
>>>
>>>
>>> >this is a query relating to allen browns List files recursively contribution
>>> >via http://allenbrowne.com/ser-59.html
>>> >
>>> >brilliant contribution, works really well. the only issue i have is the full
>>> >path and filename are displayed in the list box, so my list box needs to be
>>> >the size of the screen to view full path.
>>> >
>>> >Is there a way to just get the listbox to display the filename to the user
>>> >but to also keep the filename and path hidden so that the double click
>>> >hyperlink still works to open the documents??
>>> .
>>>

 
Reply With Quote
 
StuJol
Guest
Posts: n/a
 
      3rd Jun 2010
Tom, thanks for your continued support. i understand what your saying but im
struggling to intergrate in into allen browns code... can you find time to
review allens code (link in orginal question) and help me to intergrate...

"Tom van Stiphout" wrote:

> On Wed, 02 Jun 2010 06:45:30 -0700, Tom van Stiphout
> <(E-Mail Removed)> wrote:
>
> Sorry, I meant:
> myList.AddItem(strFilename & ";" & strFilePath)
>
> >On Tue, 1 Jun 2010 09:31:01 -0700, StuJol
> ><(E-Mail Removed)> wrote:
> >
> >Sure. It's very simple. Since you are looping over a folder tree I am
> >assuming you're adding rows one at a time. Set the RowSourceType to
> >"ValueList". Then call AddItem for each row:
> >myList.AddItem(strFilename, strFilePath)
> >This would add one filename and one full path.
> >Then you can hide the Path column by setting the ColumnWidths property
> >to "1;0"
> >
> >-Tom.
> >Microsoft Access MVP
> >
> >
> >>thaks for your comments tom,
> >>there will only be one version of each document so i dont see it an issue,
> >>can you explain how to get multiple columes and change the visibility??
> >>
> >>"Tom van Stiphout" wrote:
> >>
> >>> On Tue, 1 Jun 2010 04:56:04 -0700, StuJol
> >>> <(E-Mail Removed)> wrote:
> >>>
> >>> That doesn't seem a good idea: several versions of a document by the
> >>> same name can occur in the tree. If I only show "test.doc", how would
> >>> the user know what to select?
> >>> That said, listboxes can have multiple columns, including invisible
> >>> ones.
> >>>
> >>> -Tom.
> >>> Microsoft Access MVP
> >>>
> >>>
> >>> >this is a query relating to allen browns List files recursively contribution
> >>> >via http://allenbrowne.com/ser-59.html
> >>> >
> >>> >brilliant contribution, works really well. the only issue i have is the full
> >>> >path and filename are displayed in the list box, so my list box needs to be
> >>> >the size of the screen to view full path.
> >>> >
> >>> >Is there a way to just get the listbox to display the filename to the user
> >>> >but to also keep the filename and path hidden so that the double click
> >>> >hyperlink still works to open the documents??
> >>> .
> >>>

> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Allen Browns print report from form record selection ryan.fitzpatrick3@safeway.com Microsoft Access Reports 3 1st Apr 2008 11:31 PM
Re: Allen browns Popup Calendar Allen Browne Microsoft Access Queries 0 1st Apr 2008 03:20 PM
Allen Browne's List Files Recursively Chris Microsoft Access VBA Modules 6 13th Mar 2008 01:06 AM
List files recursively =?Utf-8?B?cmlja19pdA==?= Microsoft Access VBA Modules 2 13th Mar 2007 04:36 AM
How do I list all files recursively,sorted,without PATH on command line ? Claudia Miller Windows XP Help 3 31st Jul 2006 07:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 AM.