S
Scott
Greetings, I am trying to get the following expression to work and it
currently does not. Here is my logic: I have a report called invoice that
I want to say ie: "1 Night Stay in Cousin Amy at $149 per night beginning
7/20/04" if a 1 night stay and "5 Nights Stay in Cousin Amy at $149 per
night beginning 7/20/04" if more than 1 night. With fields: [StayLength] &
"Night Stay in " & [Rooms] & " at $" & [Rate] & " per Night Beginning" & "
" & [StayStart] (this currently works. I want to try and get it to have a
plural nights for 2 or more nights and singular night for 1 night. The
following is what I have so far, but it does not work. I get a syntax
error.
IIF([StayLength] = 1 , ([StayLength] & "Night Stay in " & [Rooms] & " at $"
& [Rate] & " per Night Beginning" & " " & [StayStart]), & ([StayLength] & "
Nights Stay in " & [Rooms] & " at $" & [Rate] & " per Night Beginning" & "
" & [StayStart]))
Thanks in advance,
Scott B
currently does not. Here is my logic: I have a report called invoice that
I want to say ie: "1 Night Stay in Cousin Amy at $149 per night beginning
7/20/04" if a 1 night stay and "5 Nights Stay in Cousin Amy at $149 per
night beginning 7/20/04" if more than 1 night. With fields: [StayLength] &
"Night Stay in " & [Rooms] & " at $" & [Rate] & " per Night Beginning" & "
" & [StayStart] (this currently works. I want to try and get it to have a
plural nights for 2 or more nights and singular night for 1 night. The
following is what I have so far, but it does not work. I get a syntax
error.
IIF([StayLength] = 1 , ([StayLength] & "Night Stay in " & [Rooms] & " at $"
& [Rate] & " per Night Beginning" & " " & [StayStart]), & ([StayLength] & "
Nights Stay in " & [Rooms] & " at $" & [Rate] & " per Night Beginning" & "
" & [StayStart]))
Thanks in advance,
Scott B