Jump to content
  • 0

Restrict Inserted Record values on Table-Level



2 answers to this question

Recommended Posts

  • 0

Hello @Ronan,


Yes. This is possible. The only pre-requisites are:

1.) You must have an auto-number field in your table.

2.) Date1 and Date2 should have a DataType of Date/Time.


Once these requirements are met, you just need to add a formula field to your table.

The syntax would be as follows:


[@field:Date2] < [@field:Date1]
THEN CAST( 'a' + 1 as INT)



Works for me.


Hope this helps.


Edited by DefinitelyNot31337
better workaround
Link to comment
Share on other sites

  • 0

Hello guys,


Do note that you will only be able to create this formula field IF YOUR TABLE IS STILL CLEAN. **No invalid/restricted record exists on your table yet.


The line CAST( 'a' + 1 as INT) will definitely cause an error therefore preventing invalid data input.

This means that if you already have data that will cause this error, the database will just NOT let you create this formula field.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...