DIALOG and file tipe

User avatar
sal21
PlatinumLounger
Posts: 4357
Joined: 26 Apr 2010, 17:36

DIALOG and file tipe

Post by sal21 »

I need to show only *.mdb and *.az

but the code return all type of file!

With Me.CommonDialog1
.FileName = ""
.Filter = "(*.MDB),(*.AZ)"
.DialogTitle = "SELEZIONA DATABASE..."
.ShowOpen
End With

User avatar
HansV
Administrator
Posts: 78499
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: DIALOG and file tipe

Post by HansV »

Use

Code: Select all

        .Filter = "MDB and AZ (*.mdb;*.az)|*.mdb;*.az"
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4357
Joined: 26 Apr 2010, 17:36

Re: DIALOG and file tipe

Post by sal21 »

HansV wrote:
23 Jan 2021, 11:26
Use

Code: Select all

        .Filter = "MDB and AZ (*.mdb;*.az)|*.mdb;*.az"
WORK!