user1787114
user1787114

Reputation: 205

User defined type not defined for file directory

I keep getting an error at Dim fd As FileDialog

ive checked the references and i have Microsoft Office 12.0 Object library checked. is there a different reference im supposed to have checked for this?

Im using Access 2007 if that makes a difference.

Upvotes: 0

Views: 166

Answers (1)

Kapol
Kapol

Reputation: 6463

That's a bit weird. Alternatively you can use

Dim f As Object
Set f = Application.FileDialog(3)

That way you don't need early binding.

Upvotes: 2

Related Questions