My boss wants me to create a database in Access 2007 that can do several things, but I am an Access beginner (but the most experienced in my small office).
The first form the user sees when opening the data base would be a master menu of checkbox choices. The user selects any combo of choices, and then a second form should auto-generate, and shows a variety of other buttons, comboboxes and textboxes for recording information associated with only the choices that were selected in the master menu via the checkboxes.
In the autogenerated form, I need to be able to enter basic count and attribute information for a collection of objects in an initial cataloging. Data would be entered via the form, linked to a master table. Standardized choices on the forms combo-boxes come from associated tables.
I then need to be able to link this initial inventory to a second table/form, with additional attribute information recorded via a combination of text, check and combo-boxes in a "detailed analysis".
However, only a sample of the objects from the initial cataloging would later go through the "detailed analysis" process.
I am thinking a work flow as described below:
User opens database for first time. A Main Menu opens with three button choices; "Variable Selection", "Initial Inventory", and "Detailed Analysis". Only "Variable Selection" is click-able (other 2 are greyed out for now).
User selects "Variable Selection" in Main Menu and a second menu form pops up with check boxes for variables to be selected.
User checks off the variables they want then clicks a "Generate" button. Nothing apparent happens other than a new button appears next to the "Generate" button called "Return".
However, not yet visible to the user, another form is autogenerated from the prior "Generate" button click, with all of the necessary text, check and combo-boxes for initial inventory (this would be the same no matter what variable are chosen in the previous checkbox variable selection menu, because initial inventory is always the same for each collection of objects-but the variable choices chosen do matter for the "Detailed Analysis" form to come).
When the user clicks "Return" button, they are taken back to the original menu with "Variable Selection", "Initial Inventory", and "Detailed Analysis", however now "Initial Inventory", and "Detailed Analysis" are click-able, with Variable Selection greyed out (since it has been used, although I need a way to be able to re-select attributed if one is forgotten).
User clicks "Initial Inventory", and is taken to the "Initial Inventory" form where they can begin inventory of the collection of objects.
Once collection of objects has been inventoried, a button called "Initial Inventory Complete" at the bottom of the Initial Inventory" form is clicked. This closes and completes the data entry for the "Initial Inventory" and returns the user to the Main Menu.
Now, in the Main Menu, "Variable Selection", and "Initial Inventory" are greyed out, and only "detailed analysis" is clickable.
User clicks "Detailed Analysis" and another form pops-up. From this form, called "Sample", the user can select a sample of the objects recorded in the "Initial Inventory" table/form based on provenience (origin of object). These data are recorded in another linked table/form separately. These are the objects that will undergo detailed analysis.
The contents of this form depend on the initial selections when "Variable Selection" was clicked (eg. the combination of checkboxes selected for various variables).
Once all the objects to undergo detailed analysis are sampled, the user clicks a button called "Begin Analysis" at the bottom of the "Sample" form.
All of the records that were selected from the "Initial Sort" table/form from choices in the the "Sample" form are selected by a query from the "Initial Sort" table; this query creates a new table called "Detailed Analysis", and appends into it the copied data.
The data is then displayed in the "detailed analysis" form with the additional variables for recording displayed.
I know this is convoluted, but its hard for me to describe all of the things I want to happen in English.
If anyone can help me with this data base design, I would appreciate it, and maybe even donate $50 bucks into a paypal account :-)
When the user is in the detailed analysis form recording more info on the sample of objects inventoried in the initial inventory, additional choices are "unlocked" or made visible based on the users selection of various combo box choices. I think I have this figured out in a test with some simple VBscript.
Select Case Me.Unit
Case "Vessel"
Me.[Estimated Vessel Completeness].Visible = True
Me.[Reconstructed].Visible = True
Me.[Number of vessel sherds].Visible = True
Case Else
Me.[Estimated Vessel Completeness].Visible = False
Me.[Reconstructed].Visible = False
Me.[Number of vessel sherds].Visible = False
End Select
I have no idea how to auto-generate the form and tables ready for data entry, from a menu of checkbox choices. I would also want the master menu to be invisible after the user autogenerates the first form/table for initial inventory of a collection from the check boxes (eg. it should only be used once, on opening the db. The empty db design would be copied for individual projects.)
And, I am confused as to how to link these tables and forms, so when entering or browsing through previously entered records, they are both linked and the user can switch seamless back and forth through initial inventory data and detailed data on the sample of objects within the initial inventory.
One of the issues I am having is that objects recorded in the initial inventory can be grouped together (say 5 like-objects are recorded in a single record), but in the detailed analysis form each of the 5 objects recorded in the initial inventory would have different information recorded for them individually-in separate recorded. How to keep track of that?
Thanks and if there are any questions, ask!