Have a database with 3 different Hotels, 3 different room numbers a DateFrom and DateTo.
Need to create a BEFORE CHANGE trigger that will not let me enter booking dates within a DATEFROM and DATETO range existing in other fields.
Can't put actual dates in the Macro since not a constant. Need it to 'read' all the parameters first.
So for example Hotel 1, room 143 has dates 6/12/14 - 6/18/14 booked. Change should stop me when I enter 6/13/14 on any row that has the same HotelNumber and Room Number