patelnitesha
Registered User.
- Local time
- Yesterday, 20:16
- Joined
- Jul 18, 2007
- Messages
- 50
Hi there,
can i use nested function in access form to get a value for list box. Here is the following code i am using.
sql = "select invoiceNumber as InvNo, iif(sum(value_os)=0,'**Paid**',iif( (type<2) and (t_date>#06/01/2008#),format(sum(value_os)+(sum(value_os)*fcharge),'£#,##0.00'),format(sum(value_os),'£#,##0.00'))) as Owed, BankSlip, paydate, iif(sum(value_os)>0,'Credit Note',iif(sum(value_os)<0,'Invoice','-----')) as Type from joint_ledger where owner_ref=" & ref_num & " and InvoiceDate>#" & listdate & "# and invoicenumber<>0 and (type<20 or type=21) group by invoicenumber,value_settled, paydate,bankslip order by invoicenumber desc" 'InvoiceDate desc,
if Nested IIF is possible then could you please help me out why this is not working..
Many thanks
Nitesha
can i use nested function in access form to get a value for list box. Here is the following code i am using.
sql = "select invoiceNumber as InvNo, iif(sum(value_os)=0,'**Paid**',iif( (type<2) and (t_date>#06/01/2008#),format(sum(value_os)+(sum(value_os)*fcharge),'£#,##0.00'),format(sum(value_os),'£#,##0.00'))) as Owed, BankSlip, paydate, iif(sum(value_os)>0,'Credit Note',iif(sum(value_os)<0,'Invoice','-----')) as Type from joint_ledger where owner_ref=" & ref_num & " and InvoiceDate>#" & listdate & "# and invoicenumber<>0 and (type<20 or type=21) group by invoicenumber,value_settled, paydate,bankslip order by invoicenumber desc" 'InvoiceDate desc,
if Nested IIF is possible then could you please help me out why this is not working..
Many thanks
Nitesha