PDA

Click to See Complete Forum and Search --> : calendar ?


rangerbud249
Sep 20th, 2004, 11:38 AM
Hey all,



Im trying to pass this


Source Error:


Line 37:
Line 38: Dim Date_OpenParam As New OleDbParameter("@Date_Open", OleDbType.VarChar, 50)
Line 39: Date_OpenParam.Value = Calendar1.selectedvalue
Line 40: dbCommand.Parameters.Add(Date_OpenParam)
Line 41:


but keeps giving me this error

BC30456: 'selectedvalue' is not a member of 'System.Web.UI.WebControls.Calendar'.





Does anyone know what the correct syntax would be?



Jose

jhermiz
Sep 20th, 2004, 12:41 PM
MyCalendar.SelectedDate.ToShortDateString();

rangerbud249
Sep 20th, 2004, 01:57 PM
thanks, but now when i try to connect it is giving me this
The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\josee\My Documents\Jester Backup\JESTER.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
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: The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\josee\My Documents\Jester Backup\JESTER.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

Source Error:


Line 11: "Data Source=C:\Documents and Settings\josee\My Documents\Jester Backup\JESTER.mdb"
Line 12: Dim dbConnection As New OleDbConnection(connectionString)
Line 13: dbConnection.Open()
Line 14: dbConnection.Close()
Line 15:

Jose

axion_sa
Sep 20th, 2004, 04:22 PM
Originally posted by rangerbud249
thanks, but now when i try to connect it is giving me this
The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\josee\My Documents\Jester Backup\JESTER.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
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.


If you have opened the database via Access, close it & try the operation via your app again.