Restricting a selection, unless a new record is used. (1 Viewer)

tacieslik

Registered User.
Local time
Today, 21:45
Joined
May 2, 2001
Messages
244
I have a Main form with a Sub form. On the Main form, there is a combo box that allows the user to select a Supplier. The user then fill's in the info for that supplier in the subform.
I want the Supplier combo to only let the user select from it once unless a new Subform record is created.
Any Ideas, I've posted this question before, but had no luck.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 16:45
Joined
Feb 19, 2002
Messages
43,457
You should have continued the first thread so people could see what was previously suggested. I already answered this question. If my suggestion did not work, what was wrong with it?
 

tacieslik

Registered User.
Local time
Today, 21:45
Joined
May 2, 2001
Messages
244
I Did Pat, but I had no reply from you! (see the following):

tacieslik
Junior Member posted 06-12-2001 05:27 AM
--------------------------------------------------------------------------------
Thanks Pat,
I know what was wrong, I needed another End If statement.
Unfortunatley, it does not work for some reason?
I'm able to choose a supplier, choose parts and then choose different suppliers on the same form?
Since I added the code you gave, the text box that is filled when a part number is selected does not display the result unless I do a refresh. Do I need a requery?
 

Users who are viewing this thread

Top Bottom