cprobertson1
Registered User.
- Local time
- Today, 17:31
- Joined
- Nov 12, 2014
- Messages
- 36
Hello again folks!
I run a database of all the standard tooling at my work for the CNC machines, each machine has 20-100 tools assigned to it that never come out the machine: "standard tooling" (and there are about 40 machines - so, a LOT of standard tools!)
Anyway, to make a long story short, I have two problems.
1) - Each tool has an image associated with it. I've procedurally generated the filepath to make things simpler (This way when I have multiple tools with the same manufacturing code it automatically grabs the image for it if it's there, elsewise it inserts an error-picture)
Now this VBA code ultimately sets the "picture" property of an image to the filepath it generated - which is fine if you're just browsing through the database (due to it setting the picture property using the "Private Sub Form_Current()")
I think this is where the problem's coming from - because when I print, it puts the same image on every page regardless of the data there - which may be the end effect of it not opening the form as it prints it (i.e the form is never "current")
Any suggestions?
2) I have duplicate tools in many machines (for instance, almost every machine has a 8mm spotting drill, a group of eight tapping drills, and a probe or two) - when I fill out the details for one, is it possible to copy (some of) those details across to any other tool with the same manufacturing code? Is it a simple case of parsing the database of Manufacturing Codes and just telling it to copy the relevant fields when it comes across a duplicate (i.e a nested for block so it checks every item in the list against every other item) (efficiency isn't a huge concern, only four people use the database and this is more of a one-off scenario to be done before reports are printed off)
Many thanks! And sorry for the wall of text!
I run a database of all the standard tooling at my work for the CNC machines, each machine has 20-100 tools assigned to it that never come out the machine: "standard tooling" (and there are about 40 machines - so, a LOT of standard tools!)
Anyway, to make a long story short, I have two problems.
1) - Each tool has an image associated with it. I've procedurally generated the filepath to make things simpler (This way when I have multiple tools with the same manufacturing code it automatically grabs the image for it if it's there, elsewise it inserts an error-picture)
Now this VBA code ultimately sets the "picture" property of an image to the filepath it generated - which is fine if you're just browsing through the database (due to it setting the picture property using the "Private Sub Form_Current()")
I think this is where the problem's coming from - because when I print, it puts the same image on every page regardless of the data there - which may be the end effect of it not opening the form as it prints it (i.e the form is never "current")
Any suggestions?
2) I have duplicate tools in many machines (for instance, almost every machine has a 8mm spotting drill, a group of eight tapping drills, and a probe or two) - when I fill out the details for one, is it possible to copy (some of) those details across to any other tool with the same manufacturing code? Is it a simple case of parsing the database of Manufacturing Codes and just telling it to copy the relevant fields when it comes across a duplicate (i.e a nested for block so it checks every item in the list against every other item) (efficiency isn't a huge concern, only four people use the database and this is more of a one-off scenario to be done before reports are printed off)
Many thanks! And sorry for the wall of text!