Hi there,
Is there a way that you can link some of the entries in a form or a database, so that when you enter data in one of them, the other ones must be left empty?
Thanks.
Regards,
Dao
Hi there,
Is there a way that you can link some of the entries in a form or a database, so that when you enter data in one of them, the other ones must be left empty?
Thanks.
Regards,
Dao
Why MUST be left empty?
Code can do whatever you want. Is this related to your other thread about 'carry over' data?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
It's a little bit too complicated to explain. But say, there are 4 boxes. In any record, I just want only one of the four (anyone of them) contain data. If you enter data into box A, you can't put data into any of the other, so on so forth.
Why do you have 4 boxes that are mutually exclusive? Are there 4 fields these boxes are bound to? If so, should probably be one field then use a combobox with 4 choices.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
There are 4 fields that the boxes are bound to, but I can't use a combo-box with 4 choices for that. They are 4 different things that are not related. But it just happens in my form that when you fill one, you don't will the other three.
Very odd. Just the fact that only one is allowed does mean they have some sort of relationship.
Code in each control AfterUpdate event that sets the others as disabled would work if the form is Single view. Then also need code in the form Current event to make them all enabled.
Otherwise, try Conditional Formatting for each control.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.