A
Angelina
Hi,
i am using the OLEDataAdapter query builder wizard to
creat my select statment. I have entered the following
query:
SELECT
c.Caravan_Inv_No,
d.Caravan_Model,
d.Length,
d.Beds,
d.[Cost/day]
FROM
Booking_Details a INNER JOIN Caravan_booking b ON
a.BookingNo = b.BookingNo INNER JOIN Caravan_Inv c ON
b.Caravan_Inv_No = c.Caravan_Inv_No INNER JOIN
Caravan_details d ON
c.Length = d.Length AND c.Caravan_Model =
d.Caravan_Model
WHERE
(a.Dt_of_arrival NOT BETWEEN ? AND ?)
AND
(b.Dt_of_depature NOT BETWEEN ? AND ?)
but i keep getting an error message stating:
Syntax error (missing operator) in query
expression 'a.BookingNo = b.BookingNo INNER JOIN
Caravan_Inv c ON
b.Caravan_Inv_No = c.Caravan_Inv_No INNER JOIN
Caravan_details d ON
c.Length = d.Length'.
can anyone plz help me solve this.
thx in adavance
i am using the OLEDataAdapter query builder wizard to
creat my select statment. I have entered the following
query:
SELECT
c.Caravan_Inv_No,
d.Caravan_Model,
d.Length,
d.Beds,
d.[Cost/day]
FROM
Booking_Details a INNER JOIN Caravan_booking b ON
a.BookingNo = b.BookingNo INNER JOIN Caravan_Inv c ON
b.Caravan_Inv_No = c.Caravan_Inv_No INNER JOIN
Caravan_details d ON
c.Length = d.Length AND c.Caravan_Model =
d.Caravan_Model
WHERE
(a.Dt_of_arrival NOT BETWEEN ? AND ?)
AND
(b.Dt_of_depature NOT BETWEEN ? AND ?)
but i keep getting an error message stating:
Syntax error (missing operator) in query
expression 'a.BookingNo = b.BookingNo INNER JOIN
Caravan_Inv c ON
b.Caravan_Inv_No = c.Caravan_Inv_No INNER JOIN
Caravan_details d ON
c.Length = d.Length'.
can anyone plz help me solve this.
thx in adavance