All,
i don't even know what i am trying to do is possible..... i Have an account number in my sales report that belongs to the company ( that our dealers can use when their account is low on funds and they rather pay us with a check ). Nonetheless i have a crosstab query that shows each sales rep their daily sales. I have Dlookup formulas looking at the account umber to notify what rep gets what sale.
I have a CEPOData query that has the general account inforamtion and has it seperated by the actual delaer and their information.
My ulitmate goal is to create an IIF function that states ( IIF the customer # ID has ( 30220992 ) " this is the generic account" ... dlookup in "QryCEPOData" , PO Number against CUst PO # ..... ( i want this to give me the actual account number for this specific sale ) but i also need the false dlookup formula to say if the customer IS isn't " 30220992" leave the origianlformula alone .
i have no idea if i make any sense but i created the below:
IIF([Br Cust #="30220992"( DLookUp("[Sales Rep]","QryCEPOData","[PO Number]='" & [Cust PO #], DLookUp("[Sales Rep]","tblmastercustomerlist","[ACCOUNT NUMBER]='" & [Br Cust #] & "'")
any help or gudience would be great thankyou