Hello -
I have a database to track various pieces of equipment and their status. Information I am tracking includes manufacture, part number, specific serial number, location.
I got a lot of help in here getting my tables normalized, and am testing with some small samples of data now - it seems to work real well.
I had an idea regarding inputting data. Rather than make several forms for inputting data into the various tables, (tblManufacturer, tblPartNumber, tblSystem and the like) I thought I would make one form, with several check boxes and combo boxes on it.
The form would have no set record source, nor would the combo boxes have a definitive row source. I would write some simple VBA procedures to set the properties as needed to add to the various tables, and call those procedures with the check boxes.
For example, if I wanted to add data to the tblManufacturer, my VBA would be something like
My question is this - Is this an efficient way of doing this, or am I better off making several forms or sub forms? (I tend to think this would be better, giving me an easier way to ensure the look of all my forms are exactly alike.)
Are there problems in the future with this scheme that I am not able to see?
Any advise or comments is greatly appreciatted.
Thanks
Scott
I have a database to track various pieces of equipment and their status. Information I am tracking includes manufacture, part number, specific serial number, location.
I got a lot of help in here getting my tables normalized, and am testing with some small samples of data now - it seems to work real well.
I had an idea regarding inputting data. Rather than make several forms for inputting data into the various tables, (tblManufacturer, tblPartNumber, tblSystem and the like) I thought I would make one form, with several check boxes and combo boxes on it.
The form would have no set record source, nor would the combo boxes have a definitive row source. I would write some simple VBA procedures to set the properties as needed to add to the various tables, and call those procedures with the check boxes.
For example, if I wanted to add data to the tblManufacturer, my VBA would be something like
Code:
[blue]Private Sub[/blue] AddManufacurer()
[tab]Me.RecordSource = tblManufacturer
[tab]With cboLarry
[tab][tab]RowSourceType = "Table/Query"
[tab][tab]RowSource = "tblManufacturer.Manufacturer!Manufacurer"
My question is this - Is this an efficient way of doing this, or am I better off making several forms or sub forms? (I tend to think this would be better, giving me an easier way to ensure the look of all my forms are exactly alike.)
Are there problems in the future with this scheme that I am not able to see?
Any advise or comments is greatly appreciatted.
Thanks
Scott