Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Imports System.Data.OleDb
Public Class Form2

    Private Sub CrystalReportViewer1_Load(sender As Object, e As EventArgs) Handles CrystalReportViewer1.Load

    End Sub

    Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.InitializeComponent()
        Dim myConn As New OleDbConnection("Provider = Microsoft.jet.OLEDB.4.0; Data Sourse = D:\kaybee\databases\try11.mdb")
        Dim MyCommand As New OleDbCommand()
        MyCommand.Connection = myConn
        MyCommand.CommandText = "SELECT SerialNumber,dated,ReceivedFrom,ReceivedFrom,DocketReferance,DocumentDescription,HandedOverTo FROM try11"
        myConn.Open()
        MyCommand.CommandType = CommandType.Text

        Dim da As New OleDbDataAdapter()
        da.SelectCommand = MyCommand
        Dim myDS As New DataSet1()

        da.Fill(myDS, "try11")

        Dim oRPT As New try14()
        oRPT.SetDataSource(myDS)
        CrystalReportViewer1.ReportSource = oRPT
    End Sub
End Class


What I have tried:

da.Fill(myDS, "try11")
error lies in this line but dont know what it is
it says Could not find installable ISAM.
Posted
Updated 2-Oct-17 21:19pm

1 solution

Most likely reason is that you are using a 64 Bit machine & the application is set to use Any CPU - this will default to x64
Recompile the application & set the Platform to x86

Kind Regards
 
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