Connecting Tech Pros Worldwide Forums | Help | Site Map

Couldn't Find Installable ISAM

Familiar Sight
 
Join Date: Oct 2006
Posts: 140
#1: Jan 25 '07
error is coming when i run the form.

Couldn't Find Installable ISAM.

CON.OPEN error is pointing to this place. problem in db or else

Lives Here
 
Join Date: Oct 2006
Posts: 1,626
#2: Jan 27 '07

re: Couldn't Find Installable ISAM


Quote:

Originally Posted by indhu

error is coming when i run the form.

Couldn't Find Installable ISAM.

CON.OPEN error is pointing to this place. problem in db or else

Hi, would you please post the code that is creating the error. That would be all of the code including the declaration of con
Thanks
Familiar Sight
 
Join Date: Oct 2006
Posts: 140
#3: Jan 27 '07

re: Couldn't Find Installable ISAM


Quote:

Originally Posted by willakawill

Hi, would you please post the code that is creating the error. That would be all of the code including the declaration of con
Thanks


Dim CON As New ADODB.Connection
Dim RS As ADODB.Recordset
Dim strTest As String
Dim myquery As Variant
Dim accdb As String ' equivalent to sql query

Sub CONOPEN()

Set CON = New ADODB.Connection
Set RS = New ADODB.Recordset

CON.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data" _
& "source=E:\VB_image\storyboard\storyboard.mdb"

CON.Open

Set RS = CON.Execute(accdb, adOpenDynamic)
End Sub
Sub CONCLOSE()

' Close Recordset/Dbase
RS.Close
CON.Close

' Clear the memory
Set RS = Nothing
Set CON = Nothing

End Sub

Private Sub Form_Load()
accdb = "SELECT * FROM story" & _
"WHERE projectid='" & myquery & "'"

Call CONOPEN

project_txt.Text = RS!project
date_txt.Text = RS!Date
episode.Text = RS!episode
scene_txt.Text = RS!scene
seq_txt.Text = RS!sequence
shot_txt.Text = RS!shot
action_txt.Text = RS!Action
dialogue_txt.Text = RS!dialogue
camera_txt.Text = RS!camera

Call CONCLOSE


End Sub

Private Sub episode_Click()
On Error Resume Next

myquery = episode.Text 'Load selected ComboBox text into a variable

accdb = "SELECT * FROM story " & _
"WHERE projectid= '" & myquery & "' "
Call CONOPEN ' Open dbase & Recordset

' Populate TextBoxes
project_txt.Text = RS!project
date_txt.Text = RS!Date
scene_txt.Text = RS!scene
seq_txt.Text = RS!sequence
shot_txt.Text = RS!shot
action_txt.Text = RS!Action
dialogue_txt.Text = RS!dialogue
camera_txt.Text = RS!camera

Call CONCLOSE ' Close dbase & Recordset

End Sub
Lives Here
 
Join Date: Oct 2006
Posts: 1,626
#4: Jan 27 '07

re: Couldn't Find Installable ISAM


After more than 70 posts you should be posting your code in code blocks. It is very hard to read when you post it as text. Just paste the code, highlight it and click on the # button on the toolbar.

This part of your code:
Expand|Select|Wrap|Line Numbers
  1. CON.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data" _
  2. & "source=E:\VB_image\storyboard\storyboard.mdb"
is joining the words data and source into one word datasource.
Change it to this:
Expand|Select|Wrap|Line Numbers
  1. CON.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data " _
  2. & "source=E:\VB_image\storyboard\storyboard.mdb"
and it should work better.
Familiar Sight
 
Join Date: Oct 2006
Posts: 140
#5: Jan 27 '07

re: Couldn't Find Installable ISAM


Quote:

Originally Posted by willakawill

After more than 70 posts you should be posting your code in code blocks. It is very hard to read when you post it as text. Just paste the code, highlight it and click on the # button on the toolbar.

This part of your code:

Expand|Select|Wrap|Line Numbers
  1. CON.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data" _
  2. & "source=E:\VB_image\storyboard\storyboard.mdb"
is joining the words data and source into one word datasource.
Change it to this:
Expand|Select|Wrap|Line Numbers
  1. CON.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data " _
  2. & "source=E:\VB_image\storyboard\storyboard.mdb"
and it should work better.


sorry for that.


runtime error 3021 is coming
Either BOF or EOF is true or current record is deleted. Requested opertion requires a current record.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  
  3. accdb = "SELECT * FROM story " & _
  4.         "WHERE projectid='" & myquery & "'"
  5.  
  6. Call CONOPEN
  7.  
  8. projectid.Text = RS!projectid showing error on this part
  9. projecttxt.Text = RS!project
  10. date_txt.Text = RS!Date
  11. episode.Text = RS!episode
  12. seq_txt.Text = RS!sequence
  13. scene_txt.Text = RS!scene
  14. shot_txt.Text = RS!shot
  15. action_txt.Text = RS!Action
  16. dialogue_txt.Text = RS!dialogue
  17. camera_txt.Text = RS!camera
  18.  
  19. Call CONCLOSE
  20.  
  21. End Sub
i didn't delete any record in backend. still the error is coming like this.

if i click record source property for Data control object its giving error as unrecognised database format 'E:\VB_image\storyboard\storyboard.mdb'

why this error is comg in recordsource property?
Lives Here
 
Join Date: Oct 2006
Posts: 1,626
#6: Jan 27 '07

re: Couldn't Find Installable ISAM


What is the data type for projectid in your database?
Is it a text or numeric value?
Reply