Open Import dialog via VBA... (1 Viewer)

CliffHanger9

zigga zigga
Local time
Today, 09:36
Joined
Nov 1, 2004
Messages
20
Hi all -

this is probably easy but I cannot find functioning code for this for the life of me..

How can I open the Import dialog box from VBA? I have a button on a form that reads "Import..." and upon clicking it i would like it to trigger the import box. This will become a function called in an automated process so please, no suggestions to click file, get external data, import...

Thanks in advance for any input on this!!
 

ghudson

Registered User.
Local time
Today, 09:36
Joined
Jun 8, 2002
Messages
6,195
First you have to click file, get external data, import... :p

Then add this step to your code.

Code:
DoCmd.RunCommand acCmdImport
Good luck!
 

CliffHanger9

zigga zigga
Local time
Today, 09:36
Joined
Nov 1, 2004
Messages
20
ghudson said:
First you have to click file, get external data, import... :p

Then add this step to your code.

Code:
DoCmd.RunCommand acCmdImport
Good luck!

hahaha...jerk :p

jk - Thanks alot! thats awesome! I knew it was something simple

there isnt a way to pass in default properties for that is there? like as far as file type and the directory path to look in??

if not, no worries but would be cool to add... - THANKS AGAN!! :cool:
 

Users who are viewing this thread

Top Bottom