N
niuginikiwi
I have looked in the current discussions and the archives but can not get
anything closer to the problem i have.
I have a database that records Plantings of Vegetables (eg Lettuce,
Cabbages, etc) and the Chemcials and Fertilisers that are applied to the
plantings.
My problem is to have an application of spraying eg Spraying Herbicides on
several different plantings using serveral different Spray Chemicals I have
in stock.
My current setup is like this... I have tblApplication which has a one to
many relationship with tblApplicationDetails, the latar being on the many
side. tbl Application has fields ApplicationID PK, ApplicationDate,
OperationID FK, PlantingDetailsID FK.... and tblApplicationDetails has fields
ApplicationID FK PK, and ProductID FK PK.
I have textbox txtApplicationDate (unbound), combo cboOperation (refers to
list of operations from tblOperations), listbox lstPlantings, and listbox
lstProducts (list of Spray Chemicals) all on an unbound form.
What I would like to acheive is to click a comand button to have new record
inserted into tblApplications ie the PlantingDetailsID field on the number
of plantings I select from the mulitselect listbox lstPlantings and have the
Operation (eg Spraying Herbicide) that I select from cboOperations into
tblApplication, and also insert the value I enter into the txtApplicationDate
field to every each reord that have just been created.
Then I would like to have another button that will insert the ApplicationID
FK PK field in tblApplicationDetails with values that have just been created
in tblApplication and for every ApplicationID inserted, I would like to have
several products (spray chemicals) that I select from the multiselect listbox
lstProducts.
I can master on creating subforms for data entry on a record by record basis
but in my case, it would really help to have all these done on a multiselect
level since we have so many plantings that we spray with different mix of
chemicals everytime ... thus this way, i think we will be able to record
oprations and produce spray schedules on the go as needed....
I'm a newbie on VBA and have spent the last week researching for some help
and resources on that but can not be able to find anything.
I would really appreciate if any of you gurus can give em some help me out
on this.
Thanks
anything closer to the problem i have.
I have a database that records Plantings of Vegetables (eg Lettuce,
Cabbages, etc) and the Chemcials and Fertilisers that are applied to the
plantings.
My problem is to have an application of spraying eg Spraying Herbicides on
several different plantings using serveral different Spray Chemicals I have
in stock.
My current setup is like this... I have tblApplication which has a one to
many relationship with tblApplicationDetails, the latar being on the many
side. tbl Application has fields ApplicationID PK, ApplicationDate,
OperationID FK, PlantingDetailsID FK.... and tblApplicationDetails has fields
ApplicationID FK PK, and ProductID FK PK.
I have textbox txtApplicationDate (unbound), combo cboOperation (refers to
list of operations from tblOperations), listbox lstPlantings, and listbox
lstProducts (list of Spray Chemicals) all on an unbound form.
What I would like to acheive is to click a comand button to have new record
inserted into tblApplications ie the PlantingDetailsID field on the number
of plantings I select from the mulitselect listbox lstPlantings and have the
Operation (eg Spraying Herbicide) that I select from cboOperations into
tblApplication, and also insert the value I enter into the txtApplicationDate
field to every each reord that have just been created.
Then I would like to have another button that will insert the ApplicationID
FK PK field in tblApplicationDetails with values that have just been created
in tblApplication and for every ApplicationID inserted, I would like to have
several products (spray chemicals) that I select from the multiselect listbox
lstProducts.
I can master on creating subforms for data entry on a record by record basis
but in my case, it would really help to have all these done on a multiselect
level since we have so many plantings that we spray with different mix of
chemicals everytime ... thus this way, i think we will be able to record
oprations and produce spray schedules on the go as needed....
I'm a newbie on VBA and have spent the last week researching for some help
and resources on that but can not be able to find anything.
I would really appreciate if any of you gurus can give em some help me out
on this.
Thanks