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

Automate importing data using input from user?

Status
Not open for further replies.

LauraJM

Technical User
Feb 11, 2003
5
GB
I need to import data from FoxPro into Access, but each time I will want it to look at a different file. I want to be able to do it seperately, so I can't loop round the files.

Is there anyway to get the value of cfile(see below) from the user and that is where Access will look for the data???

Private Sub Command1_Click()
Rem Importing Foxpro data
Rem ASK USER FOR cfile value

cfile=????????

DoCmd.TransferDatabase acImport, "Microsoft FoxPro",
"C:\Transfer\data\cfile\area.mdb, acTable, "AREA"
End Sub

I would be grateful for any help.
 

See if you have the Microsoft Common Dialog Control and if so you could use the showopen method.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top