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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating File->Get External Data->import button, how

Status
Not open for further replies.

hengsin

Technical User
Mar 26, 2003
128
MY
i want to create a button that is similiar to the File->Get External Data->Import. By only clicking on this button, the Import Dialog box will appear to let me choose the file i want. After i choose the file, the Import Object dialog box will appear to let me choose whatever the table, query etc

Thanks
 
Hi

Try having a look at

DoCmd.CopyObject [destinationdatabase][, newname][, sourceobjecttype, sourceobjectname]

or

DoCmd.TransferDatabase [transfertype], databasetype, databasename[, objecttype], source, destination[, structureonly][, saveloginid]

they may do what you want

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
hi, thanks for your help. But i find another method which is much straight forward:

DoCmd.RunCommand acCmdImport

Your method must be more advanced. I will have a look for what
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top