mithani Registered User. Local time Today, 23:10 Joined May 11, 2007 Messages 291 Nov 30, 2007 #1 Hi Freinds, Can anyone please tell me that how can I use IIF function in my query? Thanks mithani
boblarson Smeghead Local time Today, 04:10 Joined Jan 12, 2001 Messages 32,040 Nov 30, 2007 #2 Depends on what you need to do. You can use an IIF to return a value based on another value, or you can use an IIF as criteria for the query. Which are you trying to do?
Depends on what you need to do. You can use an IIF to return a value based on another value, or you can use an IIF as criteria for the query. Which are you trying to do?
mithani Registered User. Local time Today, 23:10 Joined May 11, 2007 Messages 291 Nov 30, 2007 #3 Hi Freinds, Can anyone please tell me that how can I use IIF function in my query? Thanks mithani
KeithG AWF VIP Local time Today, 04:10 Joined Mar 23, 2006 Messages 2,591 Nov 30, 2007 #4 What do you want to do with the IIF function?
mithani Registered User. Local time Today, 23:10 Joined May 11, 2007 Messages 291 Nov 30, 2007 #5 Hi, To make it more clear, I would like to use this code: IIF([calculation]<>0,(totalpurchase: [tblInvoiceChild].[quantity]*[tblInvoiceChild].[unitrate]),0) but not working. Any help mithani
Hi, To make it more clear, I would like to use this code: IIF([calculation]<>0,(totalpurchase: [tblInvoiceChild].[quantity]*[tblInvoiceChild].[unitrate]),0) but not working. Any help mithani
boblarson Smeghead Local time Today, 04:10 Joined Jan 12, 2001 Messages 32,040 Nov 30, 2007 #6 mithani said: IIF([calculation]<>0,(totalpurchase: [tblInvoiceChild].[quantity]*[tblInvoiceChild].[unitrate]),0) Click to expand... You got it slightly mixed up - totalpurchase:IIF([calculation]<>0,[tblInvoiceChild].[quantity]*[tblInvoiceChild].[unitrate],0)
mithani said: IIF([calculation]<>0,(totalpurchase: [tblInvoiceChild].[quantity]*[tblInvoiceChild].[unitrate]),0) Click to expand... You got it slightly mixed up - totalpurchase:IIF([calculation]<>0,[tblInvoiceChild].[quantity]*[tblInvoiceChild].[unitrate],0)