What will you do with that calculation?Hello
after the record is inserted into DB, I want the current field value divided/ 100
Current Record Only
Not all records
Backend SQL SERVERIn which context? Form? Query? VBA Code? Something else?
You posted this in the SQL Server section. So here's a site to help you within that context:
![]()
SQL Server Trigger Example
Learn about SQL Server triggers and how to use and create with this SQL trigger example code and explanation of SQL triggers.www.mssqltips.com
However, you have another thread:
Trigger
Friends How can SetField Value after insert I want after insert row Myfield Value for this row divide / 100 You can see the field setting on Table Macro If you could fix DataMacro Thank you so muchwww.access-programmers.co.uk
Which asks virtually the same question but within the context of an Access form. So which is it?
Yes.This smells like a percent problem. Users are entering 70 but you want .7. If so, this can be solved via an input mask.
If not, why must you change what they enter? Why not just store their value and then do the math in a query or report when you need to use or display that value?
hi @zezo2021
best is control all user input with forms ... but if you do want something at the table level, it could be in BeforeChange -- something like this:
View attachment 100361