Elephant
Registered User.
- Local time
- Today, 11:30
- Joined
- Nov 22, 2002
- Messages
- 52
Hi again
Yes, sorry, I had just RoomTyoe in there, though had cmbHOtelName etc for the others ...
Now, I out the dates in again and got an error message that we got before, so I KNOW we are near the finish line!
Error was that there was a "Missing Operator in Query Expression"
Code I have is :
Set rst = CurrentDb.OpenRecordset("SELECT [HotelPrices tbl].[Price] FROM [HotelPrices tbl] " & _
"WHERE (([HotelPrices tbl].[HotelID]) = " & Me.[cmbHotelName] & ") " & _
"And (([HotelPrices tbl].[RoomType]) = '" & Me.[cmbRoomType] & "') " & _
"And (([HotelPrices tbl].[SeasonStartDate]) <= " & ThisDate & _
") And (([HotelPrices tbl].[SeasonEndDate]) >= " & ThisDate & ")")
Can you see something wrong there - ?
Yes, sorry, I had just RoomTyoe in there, though had cmbHOtelName etc for the others ...
Now, I out the dates in again and got an error message that we got before, so I KNOW we are near the finish line!
Error was that there was a "Missing Operator in Query Expression"
Code I have is :
Set rst = CurrentDb.OpenRecordset("SELECT [HotelPrices tbl].[Price] FROM [HotelPrices tbl] " & _
"WHERE (([HotelPrices tbl].[HotelID]) = " & Me.[cmbHotelName] & ") " & _
"And (([HotelPrices tbl].[RoomType]) = '" & Me.[cmbRoomType] & "') " & _
"And (([HotelPrices tbl].[SeasonStartDate]) <= " & ThisDate & _
") And (([HotelPrices tbl].[SeasonEndDate]) >= " & ThisDate & ")")
Can you see something wrong there - ?