Jump to content

Automatic record creation by calculation


Ulloap
 Share

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

Recommended Posts

  • Newbies

Good morning Team,

This is my first post, so I hope to explain my problem quite well.

Right now im designing a db to keep tracking on a corrective and preventive maintenance tasks, so i already have the tables and i'm working on the reports and charts I expected to fm gives me, but I wanna say to fm, that creates me a new record according to a certain logical criteria, let say:

I wanna keep track on all the injection molds my toolshop has and evaluate if they need preventive or corrective task,so I have a field to enter the number of shots that every mold gives me after a running, let say 13000 shots, after I input the number of shots, I wanna fm tells me that this mold needs preventive maintenance due a criteria on the number of shots, actually I'm planning to use 3 criteria let say 250000, 50000, 900000 shots, so I need fm creates me a new record with the preventive task, to programming it.

Sorry I wasn't clear.

Best regards

Pablo Ulloa

Link to comment
Share on other sites

I don't think you need a new record (and it isn't clear in which table you think you need a new record). My impression is you need a flag field on a "mold" record that looks at the number of shots and if over your #, then equates to 1.

flag_NeedsPrevMain = if ( totalShots > prevMaintQuota; 1; "")

You'd also need a way to "reset" the totalShots after a maintenance.

What is your data model?

Link to comment
Share on other sites

As soon as you answer my question, "What is your data model?" This is a fairly sophisticated setup. I see the need for a table of molds, a table that records the shots (maybe each run?). A table of preventive measures. Can you offer a paragraph describing the work flow?

Link to comment
Share on other sites

This topic is 4299 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
 Share

×
×
  • Create New...

Important Information

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