Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reject user making same selection twice

Status
Not open for further replies.

oxicottin

Programmer
Jun 20, 2008
353
US
Hello I have a combo box [cboRejectLotNumber] on a continious form [fsub_RejectedData] and I cant have the same selection used more than once. What VBA can I add that will stop the user and give a message and send them back to the combo box? Thanks!

Thanks,
SoggyCashew.....
 
Thanks Majp, I figured it out when you said "storing values in some other table and field" and I realized I wasnt. Also thanks Andrzejek for showing us that we can remove text and it will still work...

SELECT FunctionID, RequirementID, FunctionSeqNum, Requirements FROM qry_Requirements
where RequirementID NOT IN (Select RequirementID from tbl_FunctionRequirementsOutput)
ORDER BY FunctionSeqNum;

Thanks,
SoggyCashew.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top