Results 1 to 4 of 4

Thread: calendar ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Location
    Orlando
    Posts
    30

    calendar ?

    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

  2. #2
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    Re: calendar ?

    Code:
    MyCalendar.SelectedDate.ToShortDateString();

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Location
    Orlando
    Posts
    30
    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

  4. #4
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width