Liam said:
If I have two fields in an Access form and I want
a user to be able to enter data in either one but not
both is there a way I can set this up?
Form Controls normally display and allow access to Fields that exist in a
Table, accessed directly or via a Query, as the Record Source of the Form.
You can almost certainly do what you want, in more than one way, depending
on the details.
Consider some scenarios and what you'd like to happen, then clarify and
someone can likely offer you useful suggestions. For example: On a new
record, if the user enters data in the first of the two Controls, do you
want to Lock the second one, or do you want to allow the user to enter data
in the second of the two Controls, and you clear the other one... so that
the last one into which the user types is the "winner" of the "race"? On an
existing record, if there's data in the Control Source of one of the
Controls, do you want to allow the user to enter data into the other and
clear the data that is already there?
Probably, if you'd describe the actual data you have, how it is stored, the
situation, and _what_ you are trying to accomplish rather than _how_ you
expected to accomplish it, that would be even better. There's, at least, a
chance that the perceived need to do what you ask might indicate that you
need to revise your design.
Larry Linson
Microsoft Access MVP