Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select multiple files .txt/.dat for upload

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to allow users to be able to select multiple files from a dialog box for upload into an Access database. Can anyone shed some light.
 
I do not know of a way to get the commondialog.showopen to accept multiple file selection.

You can however write your own control (ActiveX control) to do this if it is not possible

PS - do you work for datatrue??

Simon
 
I have just spotted this on another thread:

You can set the Flags property of the common dialog control to do this:

CommonDialog1.Flags = cdlOFNAllowMultiselect

Then you can set the filter property to only allow selection of .txt and .dat files:

CommonDialog1.Filter = "Text Files (*.txt)|*.txt|Dat Files (*.dat)|*.dat

Then do the ShowOpen method:

CommonDialog1.ShowOpen

Simon
 
forgot to close the quotes on the .Filter line in last post!!!

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top