PC Review


Reply
Thread Tools Rate Thread

DoCmd.TransferDatabase acImport - an Excel DBF

 
 
=?Utf-8?B?Qm9iIEJhcm5lcw==?=
Guest
Posts: n/a
 
      15th Jul 2007
N = "Store" & cboTheMonth & Right(cboStoreYr, 2) & ".dbf"
DoCmd.TransferDatabase acImport, "dbase IV", _
"S:\SelfAud", acTable, N, "StoreData", False

Have done this many times w/ DBF files. In this case, running the code
gives an error that it's not in the Path..."S:\SelfAud\Store0607.DBF" - which
it is.

H E L P...TIA - Bob
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      16th Jul 2007
I seem to recall that there can be issues using long file names. Any chance
of reducing the file names to 8 characters?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Bob Barnes" <(E-Mail Removed)> wrote in message
news:BB65408F-06CF-4AA0-853E-(E-Mail Removed)...
>N = "Store" & cboTheMonth & Right(cboStoreYr, 2) & ".dbf"
> DoCmd.TransferDatabase acImport, "dbase IV", _
> "S:\SelfAud", acTable, N, "StoreData", False
>
> Have done this many times w/ DBF files. In this case, running the code
> gives an error that it's not in the Path..."S:\SelfAud\Store0607.DBF" -
> which
> it is.
>
> H E L P...TIA - Bob



 
Reply With Quote
 
=?Utf-8?B?Qm9iIEJhcm5lcw==?=
Guest
Posts: n/a
 
      16th Jul 2007
Doug - That was it...Now I remember that from several years ago.

Thank you - Bob


"Douglas J. Steele" wrote:

> I seem to recall that there can be issues using long file names. Any chance
> of reducing the file names to 8 characters?
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Bob Barnes" <(E-Mail Removed)> wrote in message
> news:BB65408F-06CF-4AA0-853E-(E-Mail Removed)...
> >N = "Store" & cboTheMonth & Right(cboStoreYr, 2) & ".dbf"
> > DoCmd.TransferDatabase acImport, "dbase IV", _
> > "S:\SelfAud", acTable, N, "StoreData", False
> >
> > Have done this many times w/ DBF files. In this case, running the code
> > gives an error that it's not in the Path..."S:\SelfAud\Store0607.DBF" -
> > which
> > it is.
> >
> > H E L P...TIA - Bob

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8 Boon Microsoft Access Form Coding 2 3rd Mar 2010 10:14 PM
Problem with DoCmd.TransferSpreadsheet acImport Subenemi Microsoft Access Form Coding 4 12th Jan 2009 04:16 PM
DoCmd.TransferSpreadsheet acImport Help Ayo Microsoft Access 5 3rd Jul 2008 03:00 PM
error using .DoCmd.TransferSpreadsheet acImport IN EXCEL KayC Microsoft Access Macros 0 27th Oct 2006 03:12 PM
Transferdatabase acImport with Oracle Jose Microsoft Access External Data 0 2nd Jan 2004 06:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 PM.