[AccessD] Select Mulitple Files in a Dialog Box - SOLVED

Reuben Cummings accessd at gfconsultants.com
Tue Apr 14 14:32:13 CDT 2009


I tried that, but I'm told it's not a valid property.

I played with some vb constants and I could select multiple files, but I
hated the interface that resulted from it.
So some more research led me to this.

fDialog.flags = cdlOFNAllowMultiselect + cdlOFNExplorer + cdlOFNLongNames

If you use only cdlOFNAllowMultiselect it works but the interface of the
dialog changes.
Add the cdlOFNExplorer and it looks just like the standard dialog, but
allows multiple selections.  Then I just need to parse out all the files by
using the spaces left between each file name.

Thanks for the help.  Hopefully someone else can use these vb constants.

Reuben Cummings
GFC, LLC
812.523.1017


> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com 
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of 
> Hewson, Jim 
> Sent: Tuesday, April 14, 2009 2:16 PM
> To: Access Developers discussion and problem solving
> Subject: Re: [AccessD] Select Mulitple Files in a Dialog Box
> 
> 
> The property you're looking for is AllowMultiSelect
> The property is available using either With... End With or ME.
> I typically use it this way:
> 
> With fDialog
> 	.AllowMultiSelect = True
> 
> ...
> 
> 
> 
> Jim
> 
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben
> Cummings
> Sent: Tuesday, April 14, 2009 12:53 PM
> To: 'Access Developers discussion and problem solving'
> Subject: Re: [AccessD] Select Mulitple Files in a Dialog Box
> 
> I tried that.  It does not.  I didn't know if there is a 
> property of the
> dialog that I don't know about.
> 
> Reuben Cummings
> GFC, LLC
> 812.523.1017
> 
> 
> > -----Original Message-----
> > From: accessd-bounces at databaseadvisors.com 
> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of 
> > Susan Harkins
> > Sent: Tuesday, April 14, 2009 12:06 PM
> > To: Access Developers discussion and problem solving
> > Subject: Re: [AccessD] Select Mulitple Files in a Dialog Box
> > 
> > 
> > > Is there a way to make the common dialog to allow 
> > multi-file selections? 
> > > Or
> > > can anyone give me another route to select the file names?
> > 
> > =====Reuben, have you tested it? The capability might already 
> > be there. The 
> > native Open dialogs will let you choose more than one file by 
> > holding down 
> > the Ctrl key and clicking the files you want to open. Or, you 
> > can hold down 
> > the Shift key and press the first and last files to select a 
> > contiguous 
> > block of files.
> > 
> > The common dialog might provide the same feature.
> > 
> > Susan H. 
> > 
> > -- 
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > http://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> > 
> 
> 
> 
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> ##############################################################
> ##################
> If you have received this message in error, please contact the sender
> immediately and be aware that the use, copying, or dissemination of 
> this information is prohibited. This email transmission contains 
> information from NCI Information Systems, Inc. that may be considered 
> privileged or confidential and is intended solely for the named 
> recipient.
> ##############################################################
> ##################
> 
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 






More information about the AccessD mailing list