A
Angelina
Hi,
Im trying to enter a query into the query builder for in
the OLEDBdataAdapter wizard. My query is as follows:
SELECT
a.Caravan_Inv_No,
a.Caravan_Model,
a.Length,
b.Beds,
b.[Cost/day]
FROM
Caravan_Inv a,
Caravan_details b
WHERE
a.Caravan_Inv_No = b.Caravan_Inv_No AND
a.Length = b.Length AND
a.Caravan_Inv_No NOT IN
(SELECT c.Caravan_Inv_No
FROM Caravan_booking c , Booking_details d
WHERE c.BookingNo = d .BookingNo
AND Dt_of_arrival BETWEEN ? AND ?
AND Dt_of_depature BETWEEN ? AND ?)
i keep getting the following error:
Failed to get schema for this query.
does anyone have any idea of what the problem is??
btw, i have used '?' to represent a value that has to be
passed in from 2 of my dtpickers. is this the right way
to write this? (i have an access db)
thx
Im trying to enter a query into the query builder for in
the OLEDBdataAdapter wizard. My query is as follows:
SELECT
a.Caravan_Inv_No,
a.Caravan_Model,
a.Length,
b.Beds,
b.[Cost/day]
FROM
Caravan_Inv a,
Caravan_details b
WHERE
a.Caravan_Inv_No = b.Caravan_Inv_No AND
a.Length = b.Length AND
a.Caravan_Inv_No NOT IN
(SELECT c.Caravan_Inv_No
FROM Caravan_booking c , Booking_details d
WHERE c.BookingNo = d .BookingNo
AND Dt_of_arrival BETWEEN ? AND ?
AND Dt_of_depature BETWEEN ? AND ?)
i keep getting the following error:
Failed to get schema for this query.
does anyone have any idea of what the problem is??
btw, i have used '?' to represent a value that has to be
passed in from 2 of my dtpickers. is this the right way
to write this? (i have an access db)
thx