Jump to content
  • 0

Calculation syntax



3 answers to this question

Recommended Posts

  • 0


Just now, joneslovescaspio said:

Hi. I have a table that I would like to make the unique key a formula that concatenates two of the fields within the table. One field (EmployeeNumber) is an integer and the other field (QuotaMonthID) is a number. What syntax can I use to pull those together to make the unique record ID?

Hello @joneslovescaspio, you may try using this:


CAST([@field:EmployeeNumber] as VARCHAR) + CAST([@field:QuotaMonthID] as VARCHAR)

Hope this helps.

Link to comment
Share on other sites

  • 0

In addition to this, since you want the combined numbers be unique, I think you should also enable the checkbox "Unique" inside your table. Like this one: http://prntscr.com/ml5a9g

Also, since you said that QuotaMonthID is a number, if it's not unique, you should set it to unique value, (you know) just to avoid multiple records. But I assume that it's already unique since it was an ID (Silly me). Just reminding ;):D

Have a great day! 

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...