I'm working on a database that my scientists can use to submit samples for analysis. I've got the piece working where they can say the number of samples, have it insert the correct number of lines (into a temporary table), and the pieces are automatically named (sequentially). I also have it set up that they can add samples from a different experiment before sending it to the report. I can build the piece that eventually appends the information to the master table.
This is the conundrum that I've been presented with:
Each time a set of samples is submitted, they are numbered sequentially, from 1 to the number of samples, then assigned boxes (96 per box, excepting every fourth box which gets only 92). The final report must list the box contents. There is possibly some room to move in the way the samples and boxes are numbered, but not the overall set up, because that's how our robot intakes samples.
Currently, the team is doing this manually, and it both takes a great deal of time and is error prone, which is why I'm trying to automate it. (Yes, there are off the shelf programs that we could buy which would do this for them, but that's off the table for now.) I don't want to have the box and sample numbers assigned at the same time that the lines are inserted because they need to be able to insert more samples. (And maybe there is a way to do this, and I just can't see it.)
My question is this: What approach would you take? What's the best approach? Am I over-complicating this??? Recordsets puzzle me more than they probably should, so I've not explored that option much.
I've thought about having the query behind the report assign the numbers. It would be nice if they were saved in that final table, but it isn't absolutely necessary.
I'm currently displaying that temporary table information in a continuous form, and I feel like that might be causing some of the problems. Would it be better to display as a datasheet form sub-form?
This is the conundrum that I've been presented with:
Each time a set of samples is submitted, they are numbered sequentially, from 1 to the number of samples, then assigned boxes (96 per box, excepting every fourth box which gets only 92). The final report must list the box contents. There is possibly some room to move in the way the samples and boxes are numbered, but not the overall set up, because that's how our robot intakes samples.
Currently, the team is doing this manually, and it both takes a great deal of time and is error prone, which is why I'm trying to automate it. (Yes, there are off the shelf programs that we could buy which would do this for them, but that's off the table for now.) I don't want to have the box and sample numbers assigned at the same time that the lines are inserted because they need to be able to insert more samples. (And maybe there is a way to do this, and I just can't see it.)
My question is this: What approach would you take? What's the best approach? Am I over-complicating this??? Recordsets puzzle me more than they probably should, so I've not explored that option much.
I've thought about having the query behind the report assign the numbers. It would be nice if they were saved in that final table, but it isn't absolutely necessary.
I'm currently displaying that temporary table information in a continuous form, and I feel like that might be causing some of the problems. Would it be better to display as a datasheet form sub-form?