petersommer
04-29-2009, 05:13 AM
Hi, firstly can I apologise for being totally clueless: I am building my first database and have jumped completely in the deep end with a reservations database!
I am trying to run a query incorporating guests billing. I have a field "Single Supplement?" as a Yes/No option on one table, and on a different table have another field "Single Supplement" listing the different single supplements for each tour. I have tried the following IF statement to no avail, and would like to know where I am going wrong:
=IF([Single Supplement?]="Yes",[Single Supplement],0)
This seems the logical way to enter it, and if the [] are cell references, it works perfectly in Excel.
I am trying to run a query incorporating guests billing. I have a field "Single Supplement?" as a Yes/No option on one table, and on a different table have another field "Single Supplement" listing the different single supplements for each tour. I have tried the following IF statement to no avail, and would like to know where I am going wrong:
=IF([Single Supplement?]="Yes",[Single Supplement],0)
This seems the logical way to enter it, and if the [] are cell references, it works perfectly in Excel.