Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

How can I limit the number of records allowed in a table?

I have a preferences table and I only want one record in that table - the record that contains the preference field entries.

There is no need for additional records, and I would like to limit it to where if a user tries to create another record it will not allow them and instructs them on setting the preferences.

I cannot use account name or login name security since this will be a runtime file distributed to a few different folks.

Any idea or examples of handling this?

Posted

I don't see why you can't use security to turn off create and delete for that one table.

You could also use custom menus to take over the New Record and Duplicate commands, or get rid of them altogether.

Posted

If the record level access privileges for that table are set to not allow create or delete, the new and delete record commands won't work even of the user invokes them.

Be aware, however, that if a clone of the database is make the table will be empty: you might want to put a check in the startup script for this and take appropriate action. That action could be to make the new record and set default values, ot to just alert the user that there is a problem.

This topic is 5212 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.