SELECT calendar.SelectedDate

Results 1 to 2 of 2

Thread: SELECT calendar.SelectedDate

  1. #1
    Join Date
    Dec 1969

    Default SELECT calendar.SelectedDate

    Iam trying to get information from a database. When a user clicks on a day in the calender a method fires. In that method iam trying to SELECT values from a database from the day wich is clicked. like this: <BR>dim MyCommand as new OleDbDataAdapter ("SELECT * FROM tblActivity WHERE UserID = " & Session("UserID") & " AND Datum = "& day , objConn)<BR><BR>but iam getting this error:<BR>Syntax error in number in query expression &#039;Datum = 9.4.2002&#039;.<BR><BR>Can anyone help me?

  2. #2
    Join Date
    Dec 1969

    Default RE: SELECT calendar.SelectedDate

    What format is your database date in? Also try using &#039; &#039; around the day variable.

Posting Permissions

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