ms-access


How to structure a database to take input and assign applicable questions appropriately


I am creating a database that will feature the following information and need to accomplish the following goals.
Information:
Customer Name
e.g. "Otter's Wash Co"
Customer's Project Name. One customer could have many projects.
e.g. "Fur Shur Wash"
Project Elements with checkboxes to add them to the report. Elements may or may not apply to all projects, but the answers will be specific to each separate project.
e.g. "Bus Wash"
---Some project elements would need to have follow-up questions.
e.g. For "Bus Wash", further determine "Dropdown options: School bus, Party bus, Church bus"
Goal:
Generate a report that shows the Customer Name, Customer Project (I can do this part so far), and [a list of information based upon the Project Elements] <-- this is the part that I am struggling with how to do. Especially with how to structure the follow-up questions.
For example:
If a Project Element is "Bus: School bus", it would display a specific set of information on the report about school busses.
Your concept of "checkboxes to add them to the report" is likely not practical for 2 reasons:
if this is a multi-user database, users will conflict with each other editing the check field
since the checks will change for each project, there will not be history
Each project can have multiple elements and each element can belong to multiple projects. This is a many-to-many relationship. This requires a third 'junction' table that associates projects with elements. This junction table can possibly have fields for the additional attributes describing the elements but more likely will need another table.
Possibly another 'junction' table to associate selected element with selected attributes. So the ID of the ProjectElement junction table will be referenced as a foreign key in SelectedAttributes table. Each record will be an attribute associated with the ProjectElement record. This means you will need a lookup table of all possible combinations of element/attribute. Then a cascading (dependent) combobox can be used to limit dropdown list to only attributes applicable to selected element. Requires VBA.
Might want to use form/subform/subsubform arrangement - forms can go 7 deep.

Related Links

Connecting VB6 and MS Access 2007
how to autoincrement the default value in texbox
Adding logic to a sub form in Access?
how to display specific records for editing in MS Access
creating more forms after exporting MS Access database
ms access - return records from sql Stored procedure
How to check if .Attachment.Add “filename” is successful before send
Access 2003 Select records with null time
Access: Shell cmd Open MDB
Append Records From Passthrough Query to Local Table
MS-Access library for performing many kinds of DDL operations on a database (to facilitate application version upgrades)?
How to Remove Stop Words from a string using Visual Basic?
Microsoft Access runtime error 2455 when trying to access grandchildren forms from child form
Microsoft Access - stored procedure with cursor
MS Access - Write to Table Immediately After Changing Value in Form
Unbind Access Project from source control

Categories

HOME
compiler-construction
testing
gerrit
keycloak
oracle11g
gremlin
mfc
stock
fme
grep
gis
filtering
google-oauth
ckeditor
swagger-ui
multiple-records
contact
midi
row
quickbooks
circular-dependency
gz
fallback
opentracing
jsdoc
invantive-sql
solaris-10
jprofiler
reverse-proxy
object-detection
wkwebview
mustache.php
restful-authentication
lcd
strncpy
elasticsearch-ruby
facebook-apps
file-rename
socialengine
directx-10
bosh
galsim
scorm2004
phpfreechat
form-data
android-nestedscrollview
wallpaper
appfabric
serve
libvpx
bootstrapper
ensembles
core-plot
modelmapper
qcombobox
fault
colorama
media-player
or-tools
pycaffe
time-and-attendance
ado.net-entity-data-model
thrust
player
holder.js
hover-over
google-places
marching-cubes
metaclass
android-listview
twirl
mmc
system32
c++03
wordpress-theme-customize
kgdb
rtmfp
java.nio.file
stxxl
openlaszlo
commoncrypto
dir
google-cloud-save
hungarian-algorithm
lcs
wsdl-2.0
tinn-r
selected
anonymous-methods
jquery-knob
amazon-appstore
asyncfileupload
cufon
fireworks
netbeans-7.1
celltable
android-sdk-2.1
sudzc
h.323
gamequery
filtered-index
perfect-hash
simpletest
ugc

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App