Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / July 2005

Tip: Looking for answers? Try searching our database.

Import .dbf files with long names into Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
larry-v - 28 Jul 2005 20:46 GMT
In attempting to import dBaseIV files into Access, I get an error message
that the Jet DBE can't find the object.  The dBaseIV files have long
filenames (Ex; HN021372_ooedr5_1546.dbf) generated by a proprietary program
in a hand-held datalogger.  If I rename to eight characters, they import
fine, however I am receiving 150 files per day and the time to manually
rename is too long.  Is there a way to get Access to import dBaseIV files
with long names?
Ken Snell [MVP] - 28 Jul 2005 20:52 GMT
Not directly. But you could run VBA code in ACCESS that would rename the
files to "short" names.

Signature

       Ken Snell
<MS ACCESS MVP>

> In attempting to import dBaseIV files into Access, I get an error message
> that the Jet DBE can't find the object.  The dBaseIV files have long
[quoted text clipped - 4 lines]
> rename is too long.  Is there a way to get Access to import dBaseIV files
> with long names?
david epsom dot com dot au - 29 Jul 2005 03:24 GMT
If you are using code to import, you can use the
windows api to look up the short name for each file:

Declare Function GetShortPathName Lib "kernel32" _
Alias "GetShortPathNameA" (ByVal lpszLongPath As String, _
ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long

If you have an exceptionally bright windows geek on tap,
you can also re-configure windows so that the file open
dialog shows short names.

(david)

> In attempting to import dBaseIV files into Access, I get an error message
> that the Jet DBE can't find the object.  The dBaseIV files have long
[quoted text clipped - 4 lines]
> rename is too long.  Is there a way to get Access to import dBaseIV files
> with long names?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.