F
Fred Bloggs
Help a newbie, please!
I've created a query using a membership database. One field is currency
(Subs2006) and contains various subscription values (e.g. £45.00, £65.00,
etc) one of which is £0.00. I'm using this query in a Word mailmerge letter,
and I want to include a place where it shows what payment has been made. I
want it to say 'No payment required' if there was no subscription paid (i.e
£0.00), or the value as shown in the record if there was.
I've created a column in the query called Paytest and coded it like so:
Paytest: IIf([Subs2006]="£0.00","No payment required"," ")
All this does is return 'Error' in the results.
What am I doing wrong? Can you not use an IIf function in a currency field?
I've tried removing the quote marks, and various combinations of brackets,
etc. to no avail. I've searched the Help file and spent ages on the net but
nothing seems to cover it.
As you can see, I don't know functions very well, but I'm hoping you guys
can tell me the solution.
Cheers
James
I've created a query using a membership database. One field is currency
(Subs2006) and contains various subscription values (e.g. £45.00, £65.00,
etc) one of which is £0.00. I'm using this query in a Word mailmerge letter,
and I want to include a place where it shows what payment has been made. I
want it to say 'No payment required' if there was no subscription paid (i.e
£0.00), or the value as shown in the record if there was.
I've created a column in the query called Paytest and coded it like so:
Paytest: IIf([Subs2006]="£0.00","No payment required"," ")
All this does is return 'Error' in the results.
What am I doing wrong? Can you not use an IIf function in a currency field?
I've tried removing the quote marks, and various combinations of brackets,
etc. to no avail. I've searched the Help file and spent ages on the net but
nothing seems to cover it.
As you can see, I don't know functions very well, but I'm hoping you guys
can tell me the solution.
Cheers
James