Jump to content

Allowing only 1 checkbox with related records


This topic is 3663 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi!

 

I have a client database with two tables: Client, Contacts. Each client can have many contacts attributed to it but each client can have only 1 'Key Contact' which I would like to show in a list format based upon the Client table.  What I have tried to create is a simple check box on the new contact layout to highlight which contact is the key contact and then be able to show that key contact field on the client list layout. 

 

As a newbie I can't determine if this requires a search, a validation to ensure no two related contacts have the 'key contact' field checked, or something along the lines of a if calculation. 

 

Any help would be much appreciated.

 

Thanks!

 

 

Link to comment
Share on other sites

Preferably, do this the other way around: instead of giving a contact the attribute of 'being a key contact for a client', give the client the attribute of 'having the ID of a key contact'. This means you'll store a key contact's ID with the client, so you simply cannot store more than one key contact.

 

See the attached sample file.

KeyContact_eos.fmp12.zip

Link to comment
Share on other sites

This topic is 3663 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.