我有两种形式;注册表和更新详细信息表。
我的会员类型下拉列表也显示已取消的选项。我只希望取消选项出现在更新表单上,并希望将其从寄存器表单中隐藏。
注册表格
更新表格
表格记录来源 - SELECT tblMember.*, tblPayments.CardType, tblPayments.CardNumber, tblPayments.SecurityCode, tblPayments.ExpiryDate, tblPayments.CardholderName, tblPayments.[Payment Status] FROM tblMember INNER JOIN tblPayments ON tblMember.MemberID = tblPayments.MemberID;
组合框行源 - SELECT [tblMemberships].[MembershipType] FROM tblMemberships;
有没有办法做到这一点?
谢谢
答案 0 :(得分:0)
正如评论中已建议的那样,应用过滤条件。在RowSource属性中使用SQL语句(当然,替换实际的对象名称)。
对于“注册”表单,请排除项目:
SELECT TypeID, MembershipType FROM tblMemberships WHERE TypeID <> AppropriateNumberHere ORDER BY MembershipType;
对于“更新”表单,请过滤相反的内容:
SELECT TypeID, MembershipType FROM tblMemberships WHERE TypeID = AppropriateNumberHere ORDER BY MembershipType;