I have a Pass-Through query in VBA. All (most) of the syntax works fine but I am having a problem with one of the select statements.
Everythinge seems to be working, but I can't get even a simple If statement to work. Of course this works well in a stardard Access query but since this is a pass-through I'm doing something wrong. If it helps we are using an AS-400 as a back-end.
Code:
MySql = MySql + "IIf(UOM='E',((COST*QTY)),IIf(UOM='C',((COST*QTY)/100),IIf(UOM='M',((COST*QTY)/1000)))) "
Everythinge seems to be working, but I can't get even a simple If statement to work. Of course this works well in a stardard Access query but since this is a pass-through I'm doing something wrong. If it helps we are using an AS-400 as a back-end.