P
PieterLinden via AccessMonster.com
Before anyone says it, please don't suggest that "all the studies should be
in one database". I know that. But the boss says no. Further, I would need
a really flexible GUI.... And yes, I *do* have a copy of Duane's At Your
Survey db...
I work on drug study databases in Access. Most of the databases I inherit
are suffering from serious cases of Spreadsheet. Instead of having columns
like this:
CREATE TABLE PatientSymptom(
PatientID long,
TestDate Date,
Symptom Text(75),
Grade Int,
Relatedness int,
Causality int,
PRIMARY KEY (PatientID, TestDate, Symptom)
I have something like this:
PatientID long,
TestDate date,
SymptomName[n]
Relatedness[n]
Causality[n]
So I wrote a module that has all the code I need to normalize the data, and I
use it all the time, in pretty much every database I inherit. What is the
easiest way to put it in one database and just reference the database the
code lives in? This is purely code - no forms, tables, etc.
I also tweaked the MultiPik UI from Access 2002 Developer's Handbook (still
gotta love that book!) to crank out a report in Word (needed to be editable),
which I use in every DB as well.
Is there any way I can just put everything in a Utility-type database and
just set a reference to it?
I know I could put it all the code in a Library database and then reference
it in my code.
It looks like my best option is to create the library for the normalization
routines (it's all just code modules anyway), and then I'd have to either use
my ReportingDB as a front end to the StudyDB backend....
The basic idea is to have all my Utilities in ONE place, so if I add new
functions to it, I can just use them and not have to worry about which
database they're in.
Any thoughts? (Of course, if you have questions, please ask!)
Thanks!
Pieter
in one database". I know that. But the boss says no. Further, I would need
a really flexible GUI.... And yes, I *do* have a copy of Duane's At Your
Survey db...
I work on drug study databases in Access. Most of the databases I inherit
are suffering from serious cases of Spreadsheet. Instead of having columns
like this:
CREATE TABLE PatientSymptom(
PatientID long,
TestDate Date,
Symptom Text(75),
Grade Int,
Relatedness int,
Causality int,
PRIMARY KEY (PatientID, TestDate, Symptom)
I have something like this:
PatientID long,
TestDate date,
SymptomName[n]
Relatedness[n]
Causality[n]
So I wrote a module that has all the code I need to normalize the data, and I
use it all the time, in pretty much every database I inherit. What is the
easiest way to put it in one database and just reference the database the
code lives in? This is purely code - no forms, tables, etc.
I also tweaked the MultiPik UI from Access 2002 Developer's Handbook (still
gotta love that book!) to crank out a report in Word (needed to be editable),
which I use in every DB as well.
Is there any way I can just put everything in a Utility-type database and
just set a reference to it?
I know I could put it all the code in a Library database and then reference
it in my code.
It looks like my best option is to create the library for the normalization
routines (it's all just code modules anyway), and then I'd have to either use
my ReportingDB as a front end to the StudyDB backend....
The basic idea is to have all my Utilities in ONE place, so if I add new
functions to it, I can just use them and not have to worry about which
database they're in.
Any thoughts? (Of course, if you have questions, please ask!)
Thanks!
Pieter