Dugantrain
I Love Pants
- Local time
- Today, 16:40
- Joined
- Mar 28, 2002
- Messages
- 221
Here's a pretty complex problem that has me stumped:
I have a hardware tracking database. I have a main form with a datasheet subform. The main form has information on the Site that was installed, the Tech who did the install, and the Kit that he used. The subdatasheet has a listing of items in the Kit, how many the Kit started with (On-Hand), how many were Picked Up at the site, how many were Dropped Off, and how many were left when the Tech departed (New On-Hand). The problem is that the Techs aren't always accurately reporting their starting stocks; for each item, the On-Hand should match exactly the New On-Hand for the last install. So what I want the db to do is this:
On-Hand_after_Update
If this On-Hand number does not match exactly the New On-Hand number for the last record of this item being in this Kit(if there is a previous record, which there may not be), then msgbox "This Kit's me.item On-Hand stock of me.on_hand does not match its last New On-Hand stock of (previous_install_record_for_this_item.new_on_hand)."
End Sub
I've been wrestling around with this one for a while and have come up with nothing.
I have a hardware tracking database. I have a main form with a datasheet subform. The main form has information on the Site that was installed, the Tech who did the install, and the Kit that he used. The subdatasheet has a listing of items in the Kit, how many the Kit started with (On-Hand), how many were Picked Up at the site, how many were Dropped Off, and how many were left when the Tech departed (New On-Hand). The problem is that the Techs aren't always accurately reporting their starting stocks; for each item, the On-Hand should match exactly the New On-Hand for the last install. So what I want the db to do is this:
On-Hand_after_Update
If this On-Hand number does not match exactly the New On-Hand number for the last record of this item being in this Kit(if there is a previous record, which there may not be), then msgbox "This Kit's me.item On-Hand stock of me.on_hand does not match its last New On-Hand stock of (previous_install_record_for_this_item.new_on_hand)."
End Sub
I've been wrestling around with this one for a while and have come up with nothing.