JaredSangco
Technical User
All,
this is my first thread and I don’tknow where else to go. I am a non-experience Access user and VBA programmer. I have done all the minor things to my Access Programs (simple reports and forms), but now I have to do something a bit more complex.
What I have done so far. I created a form where I linked multiple tables to gather my data, however, the hard part now is to have the functionality to insert a new record to the tables when using a option group button or even a list box.
I have a parts table (tblparts [prtID ('automated number'), partname, categoryId] )with a 1 to many relationship with the Part Category Table (tblPartCat[categoryID, CategoryName, LocationID]). I also have a Location table (tblLocation [locationId, LocationName])which has a relationship to the TblPartCat.
Tblparts.PartName is an unbound text box that is free form. As far as the tblparts.CategoryName is concerned (there are 75), I would like to list them on the form individually as a label, but next to the tblparts.CategoryName label, I want to have a OptionGroup button with values from tblLocation.LocationName.
After the user completes inputing the tblparts.partname (textbox) and selecting each .tblLocation.LocationName with each corresponding tblparts.CategoryName label, the records are basically inserted to TblParts and TblpartCat.
Your guidance is appreciated. Again, I have no prior VBA experience and I have tried utilizing the standard code wizards as well as the templates, to no avail. I just can’t piece it all together.
If you feel this is too complex, your recommendations are welcome. This is basically how I initially visualized this form
this is my first thread and I don’tknow where else to go. I am a non-experience Access user and VBA programmer. I have done all the minor things to my Access Programs (simple reports and forms), but now I have to do something a bit more complex.
What I have done so far. I created a form where I linked multiple tables to gather my data, however, the hard part now is to have the functionality to insert a new record to the tables when using a option group button or even a list box.
I have a parts table (tblparts [prtID ('automated number'), partname, categoryId] )with a 1 to many relationship with the Part Category Table (tblPartCat[categoryID, CategoryName, LocationID]). I also have a Location table (tblLocation [locationId, LocationName])which has a relationship to the TblPartCat.
Tblparts.PartName is an unbound text box that is free form. As far as the tblparts.CategoryName is concerned (there are 75), I would like to list them on the form individually as a label, but next to the tblparts.CategoryName label, I want to have a OptionGroup button with values from tblLocation.LocationName.
After the user completes inputing the tblparts.partname (textbox) and selecting each .tblLocation.LocationName with each corresponding tblparts.CategoryName label, the records are basically inserted to TblParts and TblpartCat.
Your guidance is appreciated. Again, I have no prior VBA experience and I have tried utilizing the standard code wizards as well as the templates, to no avail. I just can’t piece it all together.
If you feel this is too complex, your recommendations are welcome. This is basically how I initially visualized this form