Hi,
I have created a table in access which has a showdate field which is of date/time data type.
When I try to select the showDate field using query, it shows "Data type mismatch in criteria expression."
Code is given below.
SELECT [seatno] FROM [TicketBookingtable] WHERE (([theatreName] = '" & Session("theatreName").ToString() & "') AND ([movieName] = '" & Session("movieName").ToString() & "') AND ([showDate] = '" & Session("bookedDate").ToString() & "') AND ([showtime] = '" & Session("showTime").ToString() & "'))
Please help.