home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / REFERENC / ISAM_ERR / ISAMER.TXT
Encoding:
Text File  |  1994-02-24  |  4.4 KB  |  107 lines

  1. ------------------------------------------------------------------------------
  2.             How to Correct "Couldn't find installable ISAM" error
  3. ------------------------------------------------------------------------------
  4.  
  5. This file expands upon the information given in the VB's help file and
  6. its README.TXT.  This includes common errors and traps that have been
  7. noted in messages in the MSBASIC forum on Compuserve related to this
  8. error.
  9.  
  10. "Couldn't find installable ISAM" means that an external file dynamic
  11. link library (DLL) file couldn't be found.  This file is required for
  12. operations such as attaching or accessing external tables.  External
  13. databases that are affected by the error include: Btrieve, dBase III,
  14. dBase IV, FoxPro 2.0, FoxPro 2.5, and Paradox 3.x.  ODBC and MS-Access
  15. databases use different methods and DLLs for connecting.
  16.  
  17. Possible causes when program doesn't work in the VB design environment
  18. or as an EXE file:
  19.  
  20.   1)  The entry for the database type you are trying to access in the
  21.       [Installable ISAMs] section in VB.INI or <appname>.INI points to
  22.       an incorrect location.  For example, VB.INI for some reason has
  23.       its entries pointing to C:\WINDOWS\SYSTEM when your Windows system
  24.       directory is actually on G:\WIN31\SYSTEM.  To correct this problem
  25.       exit VB or your app and edit the appropriate .INI file with Notepad
  26.       or another ASCII editor.
  27.  
  28.   2)  The entry for the database type you are trying to access in the
  29.       [Installable ISAMs] section in VB.INI or <appname>.ini points to
  30.       a network drive, and that drive isn't connected.  Check to make
  31.       sure the network is available and the proper drive letter is
  32.       established, and try the operation again.
  33.   
  34.   3)  The entry in the [Installable ISAMs] section in VB.INI or
  35.       <appname>.INI does not exactly match the connect property of your
  36.       data control or the connect parameter in the OpenDatabase function.
  37.       Confirm that the Connect property and the entry in the .INI file
  38.       match, and try the operation again.
  39.    
  40.       Examples of this error:
  41.    
  42.       a.  The VB manuals and help file refer to the Connect property for
  43.           a Paradox database as 'Paradox;'.  Actually, VB writes
  44.           'Paradox 3.x;' to the VB.INI file.  
  45.           
  46.       b.  Here are a couple of common typos:
  47.       
  48.           Typo               Correct
  49.           ----               --------
  50.           'dBase;'           'dBase IV;' or 'dBase III;'
  51.  
  52.           'dBaseIV;'         'dBase IV;'
  53.           
  54.           'dBaseIII;'        'dBase III;'
  55.           
  56.           'FoxPro;'          'FoxPro 2.0;' or 'FoxPro 2.5;'
  57.     
  58.  
  59. Possible causes when program works OK in the VB design environment but not
  60. as an EXE file:
  61.  
  62.   1) You have not created an <appname>.INI file for your application
  63.      or your current .INI file does not have an [Installable ISAMs]
  64.      section in it.  To create the required .INI file or to add this 
  65.      section to your current .INI, simply load your VB.INI file into
  66.      Notepad (or another ASCII editor) and copy the [Installable ISAMs]
  67.      section into a new file called <your_app's_name_here>.ini or
  68.      into your current .INI if you have one.
  69.        
  70.   2) Your application cannot find <appname>.INI.  To correct this, use the
  71.      SetDataAccessOption command to point to it.  For Example:
  72.    
  73.       SetDataAccessOption 1, app.path & "\MYAPP.INI"
  74.      
  75.      or
  76.      
  77.       SetDataAccessOption 1, WinDir$ & "\MYAPP.INI"
  78.       
  79.       (where WinDir$ was set to the Windows directory using the 
  80.       GetWindowsDirectory API call)
  81.  
  82.      Using the SetDataAccessOption is the best way to prevent possible
  83.      problems when you deliver your application to end users.   
  84.      
  85. ------------------------------------------------------------------------------
  86.  
  87.   I hope this helps you in working with VB 3.0 and its Data Access
  88.   functions.  I've noticed that many people have left messages in
  89.   the MSBASIC forum describing problems with this error message.  This
  90.   information should help you get over this hump.  If you have and
  91.   additions or corrections to this document, let me know.
  92.      
  93.   You may contact me at:
  94.  
  95.   J. Frank Carr
  96.   1532 Amber Trail
  97.   Duluth, GA 30136  USA
  98.  
  99.       Voice Mail: (404) 880-5762 
  100.  
  101.              CIS: 75120, 2420
  102.  
  103.   America OnLine: JFCarr
  104.  
  105. ------------------------------------------------------------------------------
  106.  
  107.