computergeek
Programmer
Hello,
I have an Assembly form where I need to filter out rows within a tags listbox that have already been assigned to an assembly.
Row Source for Tag List:
SELECT tbl_TagNames.TagID, tbl_TagNames.TagName FROM tbl_TagNames WHERE (((tbl_TagNames.TagID) Not In (SELECT tbl_Assembly.TagID FROM tbl_Assembly Where tbl_Assembly.AssemblyID <> Forms![frm_Assemby_Builder]![assemblyID]
) AND ((tbl_TagNames.active_flag)=Yes)) ORDER BY tbl_TagNames.TagName;
How/when do I requery the list when the user moves to a different assembly record where by the list only contains tags are not associated with another assembly (Not In (SELECT tbl_Assembly.TagID FROM tbl_Assembly ), BUT the list still contains the tag associated with the current assembly record, and any tags not associated with an assembly yet?
I don't think I am getting the current assemblyID value using - Forms![frm_Assemby_Builder]![assemblyID] . Can I get the current value within a Select Statement for the Row Source or can I only do this through code?
Help?
Thanks,
Computergeek
I have an Assembly form where I need to filter out rows within a tags listbox that have already been assigned to an assembly.
Row Source for Tag List:
SELECT tbl_TagNames.TagID, tbl_TagNames.TagName FROM tbl_TagNames WHERE (((tbl_TagNames.TagID) Not In (SELECT tbl_Assembly.TagID FROM tbl_Assembly Where tbl_Assembly.AssemblyID <> Forms![frm_Assemby_Builder]![assemblyID]

How/when do I requery the list when the user moves to a different assembly record where by the list only contains tags are not associated with another assembly (Not In (SELECT tbl_Assembly.TagID FROM tbl_Assembly ), BUT the list still contains the tag associated with the current assembly record, and any tags not associated with an assembly yet?
I don't think I am getting the current assemblyID value using - Forms![frm_Assemby_Builder]![assemblyID] . Can I get the current value within a Select Statement for the Row Source or can I only do this through code?
Help?
Thanks,
Computergeek