can't get filedialog to work for save as

associates

Registered User.
Local time
Today, 09:21
Joined
Jan 5, 2006
Messages
94
Hi,

I was wondering if anyone might be able to help me with this. I was trying to get a filedialog popup windows to show up so that user can enter a filename for saving purpose.

The following is the code i got from Access help but didn't work.
Private Sub CM_openfiledialog_Click()
Dim dlgSaveAs As FileDialog

Set dlgSaveAs = Application.FileDialog( _
FileDialogType:=msoFileDialogSaveAs)

dlgSaveAs.Show

End Sub

I got a compiler error saying "user-defined type not defined". it seems not being able to identify the Filedialog.

Any ideas?

Thank you in advance
 

Users who are viewing this thread

Back
Top Bottom