SELECT calendar.SelectedDate

Drustius

New Member
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 'Datum = 9.4.2002'.<BR><BR>Can anyone help me?What format is your database date in? Also try using ' ' around the day variable.
 
Back
Top