garywood84
Registered User.
- Local time
- Today, 11:46
- Joined
- Apr 12, 2006
- Messages
- 168
I am building a system to manage the allocation of materials/stock to events. I know how I want this to work from the front end, but am not sure how to configure/develop it, so am hoping someone can help me.
First some background. The system is going to manage a number of different types of event. The events all have standard requirements for materials/stock, based on the number of attendees. The database so far has a table of event types, and a related table (EventMaterials) lists materials and the standard quantity per attendee (with the relationship being EventTypeID).
I want a system that works as follows. The user enters basic event details, such as date, location, type of event (selected from a list), number of attendees, etc, on a form. The system then creates order lines in the stock inventory table for each material item required, basing the ordered quantities on the number of attendees and the standard quantity per attendee (in the EventMaterials table). This information should then appear on a subform, where the user can manually amend quantities (if they want fewer or more of a particular item for some reason).
I’m guessing I’m going to need some kind of macro that calculates the number of each standard material item required and creates the order lines in the inventory. The problem is that I have absolutely no knowledge of VBA coding other than what members of this forum have kindly helped me to produce in the past.
A further issue is that when an event is cancelled, I need to be able to remove the order lines from the inventory when the record is deleted in the Events table (though I think this will work with cascading deletes?)
I hope that someone can point me in the right direction with this, because I’ve successfully figured out how every other aspect of my system will work and am just stuck on this now, before I start building…!
Thanks,
Gary
First some background. The system is going to manage a number of different types of event. The events all have standard requirements for materials/stock, based on the number of attendees. The database so far has a table of event types, and a related table (EventMaterials) lists materials and the standard quantity per attendee (with the relationship being EventTypeID).
I want a system that works as follows. The user enters basic event details, such as date, location, type of event (selected from a list), number of attendees, etc, on a form. The system then creates order lines in the stock inventory table for each material item required, basing the ordered quantities on the number of attendees and the standard quantity per attendee (in the EventMaterials table). This information should then appear on a subform, where the user can manually amend quantities (if they want fewer or more of a particular item for some reason).
I’m guessing I’m going to need some kind of macro that calculates the number of each standard material item required and creates the order lines in the inventory. The problem is that I have absolutely no knowledge of VBA coding other than what members of this forum have kindly helped me to produce in the past.
A further issue is that when an event is cancelled, I need to be able to remove the order lines from the inventory when the record is deleted in the Events table (though I think this will work with cascading deletes?)
I hope that someone can point me in the right direction with this, because I’ve successfully figured out how every other aspect of my system will work and am just stuck on this now, before I start building…!
Thanks,
Gary