Click here to Skip to main content
15,914,795 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Creating multiple forms Pin
Jim Matthews5-Aug-04 3:49
Jim Matthews5-Aug-04 3:49 
GeneralRe: Creating multiple forms Pin
Simon Kearn5-Aug-04 4:21
sussSimon Kearn5-Aug-04 4:21 
GeneralRe: Creating multiple forms Pin
Dave Kreskowiak5-Aug-04 5:33
mveDave Kreskowiak5-Aug-04 5:33 
GeneralRe: Creating multiple forms Pin
Simon Kearn5-Aug-04 6:07
sussSimon Kearn5-Aug-04 6:07 
GeneralRe: Creating multiple forms Pin
Dave Kreskowiak5-Aug-04 7:14
mveDave Kreskowiak5-Aug-04 7:14 
GeneralRe: Creating multiple forms Pin
Jim Matthews5-Aug-04 7:33
Jim Matthews5-Aug-04 7:33 
GeneralRe: Creating multiple forms Pin
Anonymous6-Aug-04 1:04
Anonymous6-Aug-04 1:04 
GeneralError on data adapter Pin
ibok234-Aug-04 15:30
ibok234-Aug-04 15:30 
Could someone tell me what I am doing wrong? I am trying to add access into visual basic. I have changed the server for access (Microsoft Jet 4.0 OLE DB Provider). I have done the test connection - all is well. I have added the dataGrid to the web form- Named it MyDG1. I clicked on OldDbDataAdapter and added the connection where the access page is. I have done the Query builder, generate dataset (which I called MyDS). I selected the the dataset and Previewed it - all is well when I filled it in. I assigned a table to the DataView - Shopping Products (my access page). I assigned the DataSource property on the DataGrid as DataView1. In the page_load handler I added

OleDbDataAdaper1.Fill(MyDS1)
Page.DataBind()

I build it - all is good; however when I view in browser that is when I get my error. Here is my error.

Server Error in '/WebApplication1/WebApplication1/Unit5' Application.
--------------------------------------------------------------------------------

Unspecified error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Unspecified error

Source Error:


Line 83: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line 84: 'Put user code to initialize the page here
Line 85: OleDbDataAdapter1.Fill(MyDS1)
Line 86: Page.DataBind()
Line 87: End Sub


Source File: c:\inetpub\wwwroot\WebApplication1\WebApplication1\Unit5\WebForm1.aspx.vb Line: 85

Stack Trace:


[OleDbException (0x80004005): Unspecified error]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvider() +57
System.Data.OleDb.OleDbConnection.Open() +203
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
Unit5.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication1\WebApplication1\Unit5\WebForm1.aspx.vb:85
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Can anybody help me?Confused | :confused:

Thank you,

ibok23
GeneralRe: Error on data adapter Pin
Dave Kreskowiak5-Aug-04 5:30
mveDave Kreskowiak5-Aug-04 5:30 
GeneralRe: Error on data adapter Pin
ibok235-Aug-04 13:13
ibok235-Aug-04 13:13 
GeneralSMS feature Pin
mythinky4-Aug-04 15:08
mythinky4-Aug-04 15:08 
GeneralRe: SMS feature Pin
Dave Kreskowiak5-Aug-04 5:47
mveDave Kreskowiak5-Aug-04 5:47 
GeneralTell your story Pin
Nss .NET4-Aug-04 13:41
sussNss .NET4-Aug-04 13:41 
GeneralRe: Tell your story Pin
mythinky4-Aug-04 15:11
mythinky4-Aug-04 15:11 
GeneralRe: Tell your story Pin
steve n.4-Aug-04 15:36
susssteve n.4-Aug-04 15:36 
GeneralRe: Tell your story Pin
Colin Angus Mackay5-Aug-04 0:12
Colin Angus Mackay5-Aug-04 0:12 
GeneralCurrent row in datagrid Pin
partt4-Aug-04 11:39
partt4-Aug-04 11:39 
GeneralData Dictionary Pin
Britnt74-Aug-04 10:38
Britnt74-Aug-04 10:38 
GeneralRe: Data Dictionary Pin
Dave Kreskowiak4-Aug-04 10:59
mveDave Kreskowiak4-Aug-04 10:59 
GeneralRe: Data Dictionary Pin
Britnt75-Aug-04 3:00
Britnt75-Aug-04 3:00 
GeneralPLS help for the datagrid button column Pin
4-Aug-04 9:51
suss4-Aug-04 9:51 
GeneralRe: PLS help for the datagrid button column Pin
Jim Matthews4-Aug-04 10:08
Jim Matthews4-Aug-04 10:08 
GeneralRe: PLS help for the datagrid button column Pin
Lisana4-Aug-04 10:10
Lisana4-Aug-04 10:10 
GeneralRe: PLS help for the datagrid button column Pin
Jim Matthews4-Aug-04 10:16
Jim Matthews4-Aug-04 10:16 
GeneralRe: PLS help for the datagrid button column Pin
Lisana4-Aug-04 10:20
Lisana4-Aug-04 10:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.