I am trying to build a GI using the INItemSite table to display the InventoryID and the MinQty designated for each warehouse. I’m trying to use the following formula to limit to the MinQty from a specific warehouse and will duplicate several times for each warehouse (grouping the results by InventoryID):
=IIf(fINItemSite.SiteID]='Warehouse-01','INItemSite.MinQty],0)
However, when I try to view the results I receive the following error message:
Conversion failed when converting the varchar value 'Warehouse-01' to data type int.
Anyone have any suggestions around this? I would imagine this error means the INItemSite.SiteID field does not actually contain the text data but is actually a numeric value assigned to that SiteID, but I can’t figure out how to fix this GI. Seems fairly straightforward.