Again, I am new to VB.Net, just now taking a
class in that. I am not sure I fully understand your design, but i figure it
shouldn't be hard.
Regards,
Brad
:
Brad, Access is a lot simpler in many ways than VB.Net but the
principles are similar so some of what you do in Access will look very
familiar.
What we're talking about here is not very complex and it is really the
basis of any robust database design.
- All Forms and Reports should be based on Queries (not an absolute,
but a good habit to get into)
- All similar data should be together in one table (for exactly the
reason you have discovered - you can't analyse and report on it
otherwise)
- Use lots of little relational tables (like tblFacilityName) to
provide you with the means to organise and filter your data
- Maybe in this case, if you absolutely don't want people to see other
facility data you could use a Form to filter the data and only send
out a FrontEnd to each facility with "their" form in it
The code that opnes your form would look like this
DoCmd.OpenForm "frmFacilityInfo", , , "[FacilityID]=" & Me![FacilityID
(watch the word wrap, should all be one line)
Have fun
Brett
On Fri, 12 Nov 2004 10:13:26 -0600, "Lynn Trapp"
Brad,
If you follow Bret's suggestion and, also, you only give people access to
the data via forms that have queries as their recordsource, then you can
limit what people see to the specific facility they are in.
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security:
www.ltcomputerdesigns.com/Security.htm
Brett,
The problem with it being one database is that information from one
facility
would be available to another. That is why I was trying to have a table
that
each can access and update, but to send the information to that "one
database" that you were referring to so that the charts can be run.
I am just learning coding, VB.NET, so I would need help with coding to set
up a database like this.
Thanks!
:
On Wed, 10 Nov 2004 10:43:06 -0800, Brad_A
I have 7 different databases with the same exact fields from different
facilities. What is the best way to create a masterdatabase of all of
them?
Right now it is set up so each facility has their own form that feeds
into
their specific database.
If I need to do a special query, please define the code (logic) that
must be
entered.
Brad, all of your databases should be in the same table with just a
single field which identifies the different facilities. You would add
a tblFacilities table which just has the list of the facilities for
the users to select via a combo box on a form.
This is Best Practice data design. It allows you to cross query
between facilities, you can run reports that compare facilities and
you can group facilities on reports.
It also simplifies your forms down to one of each type. You can write
a little bit of code (with our help of course) that asks the person
opening the form which facility they want. When the form opens, the
only information they get to work with is for that facility.
Cheers,
Brett
----------------------------------------------
Be adventurous, be bold, be careful, be a star
----------------------------------------------
Brett Collings
Business & Systems Analyst
Management Information Systems Developer
Cheers,
Brett