Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

Error attempting to open TApolloTable dbf

I am using Delphi 7, Apollo VCL 6.1. I am getting the message that the code cannot open the file, even though the file is there. It is not open by any other application or user. The TApolloTable has a dbf file (USERS.dbf) as its source.
if dm.Table_Users.Exists then
  begin
    messagedlg('Users table exists',mtInformation,[mbOK],0);
  end;
 
  try
    dm.Table_Users.Open;
    dm.Table_Users.SetOrder(dm.table_Users.TagArea('USER_ID'));
  except  
    MessageDlg('Can''t Open the User List file',mtError,[mbOK],0);
    Close;
  end;

Open in new window

0
CultLeaderZero
Asked:
CultLeaderZero
  • 2
  • 2
1 Solution
 
SteveBayCommented:
Change exception handling code to find out what the exact error is:

  except  
    on e : exception do begin
    MessageDlg('Can''t Open the User List file:' + e.Message  ,mtError,[mbOK],0);
    Close;
    end;
  end;

Open in new window

0
 
CultLeaderZeroAuthor Commented:
The error message is 'Unable to open table: 'j:\paprless\txcdo\claims\users.dbf'.

This is the correct path to the dbf file.
0
 
SteveBayCommented:
Hmm. well that's not very helpful at all. Have you tried opening it with any other applications like say Paradox?
0
 
CultLeaderZeroAuthor Commented:
I found the error. I need the appropriate dll, SDECDX61.dll, to use Foxpro files.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now