ljm Posted August 31, 2006 Posted August 31, 2006 I have a table called addresses which has a field called current, each person can have a number of addresses; work, home, summer etc. I have a relationship to the address table called Current Address based on ID and the field Current, which allows the current address to be shown on all the layouts where it is required, it works well. Here is my problem, I would like to allow only one record to be set as current, but I can't figure out how to check to see if one is already set as current, and then message the user that another record is already set as current. I think a self-join could help, but not sure how to set it up. Any suggestions are appreciated. Thanks, Linda
bruceR Posted August 31, 2006 Posted August 31, 2006 Put the ID of the current address record in the Contacts table instead. That way you can only have one current address for any contact.
Recommended Posts
This topic is 6717 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now