T
Twas
It sounds like the preferred way to use access is to use mutlple linked
tables rather than repeating data - in simplified form:
table Main
key: autonumber
userID: long integer (used in a relation with users key; this is the
"many" side)
asset: text (actually, there's a whole bunch of data for each asset)
table Users
key: autonumber
user: text (actually, a user has a phone and much more)
Where I may have multiple assets per user. My problem with this approach is
importing data. The original data source is typically an Excel spreadsheet
that includes the user and the asset data on each line.
How do a build a query or a form for inputing (or VBA or whatever) that will
pull the data into both tables at once? The standard approach seems to be one
query to add assets, and a separate query to add users, and more queries to
handle the cases where users leave (their assets have to assigned to someone
else) and data is imported where the spreadsheet has both old users and new
users that don't appear in the Users table. That seems like a lot of work
just to avoid a bit of redundant data.
The alternate approach (although it requires that redundant data be stored)
would be to just store all the user's data with each asset, and use the Users
table to prepopulate the data for the entry of an Asset with a command
button.
tables rather than repeating data - in simplified form:
table Main
key: autonumber
userID: long integer (used in a relation with users key; this is the
"many" side)
asset: text (actually, there's a whole bunch of data for each asset)
table Users
key: autonumber
user: text (actually, a user has a phone and much more)
Where I may have multiple assets per user. My problem with this approach is
importing data. The original data source is typically an Excel spreadsheet
that includes the user and the asset data on each line.
How do a build a query or a form for inputing (or VBA or whatever) that will
pull the data into both tables at once? The standard approach seems to be one
query to add assets, and a separate query to add users, and more queries to
handle the cases where users leave (their assets have to assigned to someone
else) and data is imported where the spreadsheet has both old users and new
users that don't appear in the Users table. That seems like a lot of work
just to avoid a bit of redundant data.
The alternate approach (although it requires that redundant data be stored)
would be to just store all the user's data with each asset, and use the Users
table to prepopulate the data for the entry of an Asset with a command
button.