Steve
We really need to check the content of the variables. If holding the cursor over variable names while the code is running doesn't display the values, you'll have to use another method. You could use "Debug and Add Watch" but it's probably simpler to insert some Msgbox statements.
Change Function DaysPrice:
MySQL = "([RoomType etc
Msgbox MySQL
DaysPrice = Dlookup etc
Msgbox DaysPrice
I assume you've not changed any table or field names?
shay
We really need to check the content of the variables. If holding the cursor over variable names while the code is running doesn't display the values, you'll have to use another method. You could use "Debug and Add Watch" but it's probably simpler to insert some Msgbox statements.
Change Function DaysPrice:
MySQL = "([RoomType etc
Msgbox MySQL
DaysPrice = Dlookup etc
Msgbox DaysPrice
I assume you've not changed any table or field names?
shay