I would like to have lists of Manufacturers and Models in my database. When I select ManufacturerA in the first drop down, I want the Models drop down to be modified to only show those models actually made by ManufacturerA.
In the past I've done this by:
1) Creating a Manufacturers table
2) Creating a Models table, including a field for ManufacturerFK (foreign key)
3) Creating a relationship between the two
4) Using an AfterUpdate event for the Manufacturer field on the form, so that it changes the contents of the Model drop-down once a Manufacturer has been selected.
I have been looking at the Access 2010 "Assets" web database template, and am trying to learn about the changes made for web databases. I've long liked Datasheet View forms, but been frustrated with their inability to handle conditional drop-downs (as above) without affecting all lines on the sheet.
***My favoured work-around (which I'm not yet quite good enough to implement - so would like help) is a datasheet view form, where you click something to open another form to enter a new item. The Web template I've just mentioned does exactly this! In the ID column, you either click the ID number, or "New" (to enter a new item), and it brings up a form you can use to edit the item. Perfect!
Only trouble is the 2010 Web databases don't support relationships. So now I don't know how to setup the cascade drop downs with Manufacturer and Model again. I don't know much code and sometimes get really frustrated with Access. I often see this kind of cascade in real databases, so why isn't that functionality built into Access?
I had a look at the new data macros. I like how they affect a table, then also any forms built on it automatically. However, the instructional video I saw used data macros to set the second field to a given value based on the item entered in the first field, which is less powerful than a cascade where a choice leads to a SET OF VALUES rather than a given value.
Can anyone help?
Two routes
- build that pop-up form functionality (paragraph ***) into a desktop database, or
- make the cascade combo boxes work with the web database
Currently I'm not bothered which. Ideally I'd understand both.