ok i just finised writing out code configuration for a crystal report in visual studio 2008 visual basic language
this is in my datasetconfiguration.vb
in my configuration file, my code keeps generating a single error message sayingCode:Imports System.Data Imports System.Data.OleDb Public Class DataSetConfiguration Private Const CONNECTION_STRING As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Aarons\Documents\Visual Studio 2008\Projects\APRAS\APRAS\nrguest.accdb" Private Const QUERY_STRING As String = "SELECT * FROM nrguest" Private Const DATATABLE_NAME As String = "nrguest" Public Shared ReadOnly Property nrguestDataSet() As DataSet Get End Get End Property Dim myDataSet As nrguestDataSetSchema = New nrguestDataSetSchema() Dim myOleDbConnection As OleDbConnection = New OleDbConnection(CONNECTION_STRING) Dim myOleDbDataAdapter As OleDbDataAdapter = New OleDbDataAdapter(QUERY_STRING, myOleDbConnection) myoledbadapter.Fill(myDataSet, DATATABLE_NAME)Return myDataSet End Class
declaration expected line 16 column 5 (red)
if u look at my code, i JUST DECLARED it in line 15 (yellow)
i even tried dropping of the "my" section in myoledbadapter and changed it to oledbadapter but still error.
what am i missing? im like ripping my hair out staring at it
please help, i've been trying to figure this out for the past three days.
i even followed the tutorial in the help file to the t and still that single error




Reply With Quote