On my Sales Form I have basic information on the sales event (who bought it, how it was shipped, shipping method, etc...). I have put as a subform the items associated with that sale. For each item included in the sale, they must select where the item they are trying to bring in came from by picking a transfer number from the dropdown first. The item field then only displays items that have been previously associated with that transfer.
This works when I open the sub form by itself, but whenever I use it in the Sales Form a box pops up requesting the transfer number even though it has already been selected. It displays "[Forms]![subfrmSales].[TransferNum]" and when I type in the transfer number (that I had already selected) into the pop up, then it works fine. Any ideas on why this is happening and how to fix it?
I'm running Microsoft Access 2000 (SP-3).
My SQL in the Item Field:
SELECT tblItem.ItemNum, tblItem.ItemDescription, tblItemTransfers.TransferNum
FROM tblItem LEFT JOIN tblItemTransfers ON tblItem.ItemNum = tblItemTransfers.ItemNum
WHERE (((tblItemTransfers.TransferNum)=[Forms]![subfrmSales].[TransferNum]))
ORDER BY tblItem.ItemNum;
Let me know if you need to know anything else, thanks!
-Steve
This works when I open the sub form by itself, but whenever I use it in the Sales Form a box pops up requesting the transfer number even though it has already been selected. It displays "[Forms]![subfrmSales].[TransferNum]" and when I type in the transfer number (that I had already selected) into the pop up, then it works fine. Any ideas on why this is happening and how to fix it?
I'm running Microsoft Access 2000 (SP-3).
My SQL in the Item Field:
SELECT tblItem.ItemNum, tblItem.ItemDescription, tblItemTransfers.TransferNum
FROM tblItem LEFT JOIN tblItemTransfers ON tblItem.ItemNum = tblItemTransfers.ItemNum
WHERE (((tblItemTransfers.TransferNum)=[Forms]![subfrmSales].[TransferNum]))
ORDER BY tblItem.ItemNum;
Let me know if you need to know anything else, thanks!
-Steve