I have a database with follow recordfields: check in, check out and roomnr.
i set check in and roomno in index as unique same as roomnr. and checkout so that no overbooking is possible but between the to dates i couldn't make the dates to unique in combination with the roomnumber
for exemple :
roomno. 3 check in 20/1/14 check out 22/1/14
roomno.3 check in 21/1/14 check out 25/1/14
how could i show up a error in the 2. row
with diffdate() i created a new recordfield : nights.
is it possible to use a vba code for set the unique?
any ideas how to manage? :banghead:
i set check in and roomno in index as unique same as roomnr. and checkout so that no overbooking is possible but between the to dates i couldn't make the dates to unique in combination with the roomnumber
for exemple :
roomno. 3 check in 20/1/14 check out 22/1/14
roomno.3 check in 21/1/14 check out 25/1/14
how could i show up a error in the 2. row
with diffdate() i created a new recordfield : nights.
is it possible to use a vba code for set the unique?
any ideas how to manage? :banghead: