L
Laurel
I have an application to collect scores across time. Right now I have 5
columns with hard coded names. I would like to generalize my application to
use a variable number of columns with parameter driven column names. (That
is, you define the number of columns and their names at setup time - not at
runtime, but it shouldn't require any code changes).
This is a common issue in dataprocessing, and I've solved it in other
languages, but I'd like some guidance on the best approach(es) in Access.
Here's what I've thought of so far
1. Use functions for the column names. The database columns are called
"First Score," "Second Score," etc. On my forms and reports I use
fnc_ColName("First Score"), etc.
2. Make columns on forms and reports visibile/invisible based on the number
of columns in play (stored in a parameter). This isn't completely
satsifactory, as the look of the forms will be nice or not nice, depending
on how many columns will be displayed.
I'm worried about charts. I've found it's hard to get info about working
with charts via code.
columns with hard coded names. I would like to generalize my application to
use a variable number of columns with parameter driven column names. (That
is, you define the number of columns and their names at setup time - not at
runtime, but it shouldn't require any code changes).
This is a common issue in dataprocessing, and I've solved it in other
languages, but I'd like some guidance on the best approach(es) in Access.
Here's what I've thought of so far
1. Use functions for the column names. The database columns are called
"First Score," "Second Score," etc. On my forms and reports I use
fnc_ColName("First Score"), etc.
2. Make columns on forms and reports visibile/invisible based on the number
of columns in play (stored in a parameter). This isn't completely
satsifactory, as the look of the forms will be nice or not nice, depending
on how many columns will be displayed.
I'm worried about charts. I've found it's hard to get info about working
with charts via code.