dynamictiger
Registered User.
- Local time
- Today, 13:10
- Joined
- Feb 3, 2002
- Messages
- 270
In my current application I am trying to open up the options to the user. I am trying to decide the best approach to this issue.
The user can set up a group of water tests they want to make on any swimming pool, these could be Standard, Green, Stain etc.
Any of these groups could require analysis of any chemical parameter, standard ones like Chlorine and pH although I want the user to be able to define their own, so we could have Phosphates or Sulphates or what have you.
Using a table structure like:
TestDate
Text1
Text2
Text3
...
ReportType
I can use ADO to iterate through the appropriate SQL and change the field names to suit.
However, the problem with this approach is that the subform showing past records can become out of sync with the main data entry form. This is even more pronounced if I requery the subform for the report type chosen, as the order of fields may change, but the data does not.
So I got to thinking about alternative approaches - and this is where you come in.
I could ignore the anomolies and say okay this is allright most of the time - don't worry about the odd out of sync.
Alternatively perhaps I should build tables for each report type and tie back to them and only record the relevant records in the relevant tables rejoining the form and subform as required to the appropriate recordsource.
Or perhaps I should set up a table with 6 common fields bound and only give the user control over two or three fields.
Or some other alternative I have not thought of.
I would appreciate anyones thoughts, ponderings, musings, or wonderings on this.
The user can set up a group of water tests they want to make on any swimming pool, these could be Standard, Green, Stain etc.
Any of these groups could require analysis of any chemical parameter, standard ones like Chlorine and pH although I want the user to be able to define their own, so we could have Phosphates or Sulphates or what have you.
Using a table structure like:
TestDate
Text1
Text2
Text3
...
ReportType
I can use ADO to iterate through the appropriate SQL and change the field names to suit.
However, the problem with this approach is that the subform showing past records can become out of sync with the main data entry form. This is even more pronounced if I requery the subform for the report type chosen, as the order of fields may change, but the data does not.
So I got to thinking about alternative approaches - and this is where you come in.
I could ignore the anomolies and say okay this is allright most of the time - don't worry about the odd out of sync.
Alternatively perhaps I should build tables for each report type and tie back to them and only record the relevant records in the relevant tables rejoining the form and subform as required to the appropriate recordsource.
Or perhaps I should set up a table with 6 common fields bound and only give the user control over two or three fields.
Or some other alternative I have not thought of.
I would appreciate anyones thoughts, ponderings, musings, or wonderings on this.