Click here to Skip to main content
16,022,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I do have visual basic program and i am using windows XP operating system.
I have created one Data control and combobox.
the combobox datasource is setted as data control.

when i refresh the data control, its says "Could not find the installable ISAM".

please refer the attached code.
dtcApplication.DatabaseName = strServerPath + "\" + strDatabasNamn

SQL = "SELECT DISTINCTROW " 
   SQL = SQL + "tblApplication.Application "
   SQL = SQL + "FROM tblApplication;"
   dtcApplication.RecordSource = SQL
   
   dtcApplication.Refresh


What I have tried:

dont have right directions for find out the solution
Posted
Comments
Richard Deeming 3-Jul-24 4:27am    
NB: VB6 has been dead for over 20 years. Windows XP has been dead for over 10 years. If you insist on starting new development in a long-dead technology on a long-dead OS, you're going to increasingly struggle to find solutions to the problems you encounter.

So, the error is telling you that it cannot find an appropriate ISAM provider. What you normally need to do is provide a set of extended properties. Suppose you were trying to read from Access, your connection string might look something like this:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<<path to db>>;Extended Properties='Microsoft.ACE.OLEDB.12.0;HDR=YES;IMEX=1;';
The really important part of the proerties is the IMEX entry.
 
Share this answer
 
VB 6 was superseded in 2001 and entered end of support in 2008.
Win XP was superseded in 2008 and entered end of support in 2014.

Creating new development based on either is a poor idea; both is positively dangerous.

Add to that your query is overcomplicated
DISTINCTROW has an effect only when you select fields from some, but not all, of the tables used in the query. DISTINCTROW is ignored if your query includes only one table, or if you output fields from all tables.

And you end up with something we can't duplicate - you probably need to have a good close look at the connection string and identify which engine you are using and compare that against the system itself - if you are referencing a 64 bit DB engine in a VB6 project it's not going to work because VB6 only supports 32 bit processes.

I know we've told you this before, but ... move to a more modern OS and IDE, move to a more modern language - the level of support you can get for the ancient setup you are trying to work with is just going to cause you more and more problems as you go on.!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900