I would appreciate some comment on a solution I have come up with, which is described below.
I had a dialog form on which users couldchoose 1 of 12 queries to open.
Users justifiably found a list of 12 queries confusing, so I now have 4 option groups instead.
Every option on the dialog form has a unique option value and when option group values are summed, each selectable combination results in a unique number. I have those unique numbers listed in a table along with the name of the query they relate to.
I then have the following code:
This opens the query that matches the options selected. It seems to work well, and the users really like it.
I am curious to know whether this is a sensible solution to the problem, or if there is a better or best practice solution I should be using.
I had a dialog form on which users couldchoose 1 of 12 queries to open.
Users justifiably found a list of 12 queries confusing, so I now have 4 option groups instead.
Every option on the dialog form has a unique option value and when option group values are summed, each selectable combination results in a unique number. I have those unique numbers listed in a table along with the name of the query they relate to.
I then have the following code:
Code:
...
Dim OptSum As String
Dim qname As String
OptSum = Me![opLevTyp] + Me![opRptTyp] + Me![opPara] + Me![opSppChs]
qname = DLookup("[qrynam]", "lstquery", "[Value] =" & FishVal)
DoCmd.OpenQuery qname, acViewNormal
End If
...
This opens the query that matches the options selected. It seems to work well, and the users really like it.
I am curious to know whether this is a sensible solution to the problem, or if there is a better or best practice solution I should be using.