Newbies Ulloap Posted April 22, 2011 Newbies Posted April 22, 2011 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
bcooney Posted April 22, 2011 Posted April 22, 2011 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?
Newbies Ulloap Posted April 22, 2011 Author Newbies Posted April 22, 2011 Thanks for your reply, but could u explain me what's the meaning of flag field, and how can I make a reset as u say? Thanks for your support I really appreciate it!
bcooney Posted April 23, 2011 Posted April 23, 2011 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?
Recommended Posts
This topic is 5310 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 accountSign in
Already have an account? Sign in here.
Sign In Now