M
Mark
Using Access 2000.
Here's the deal:
I have a table that (in addition to other fields) has
about 30 different fields named
minutes1
minutes2
....
minutes10
minutes15
....
Basically, the n in minutes[n] says how many minutes a
customer waited. Now, the value in this field is '1' if it
took that many minutes, or '0' if it didn't.
So, if something took 10 minutes, minutes10 = '1'
and minutes1, minutes2, etc. = '0'
Why they did this is beyond me.
What I gotta do is find how many minutes a customer
waited. In a query, I know I can pass fields to a
function. I'm wondering if I can pass the whole record to
a function. From there, I can programmatically find the
fields and check the values. Can I do this and how? And
if, not, is there a shortcut to doing this rather than
passing a function like
GetMinutes(minutes1, minutes2, ...)
or (gasp!) one hell of a nested iif statement.
Thanks!
-Mark
Here's the deal:
I have a table that (in addition to other fields) has
about 30 different fields named
minutes1
minutes2
....
minutes10
minutes15
....
Basically, the n in minutes[n] says how many minutes a
customer waited. Now, the value in this field is '1' if it
took that many minutes, or '0' if it didn't.
So, if something took 10 minutes, minutes10 = '1'
and minutes1, minutes2, etc. = '0'
Why they did this is beyond me.
What I gotta do is find how many minutes a customer
waited. In a query, I know I can pass fields to a
function. I'm wondering if I can pass the whole record to
a function. From there, I can programmatically find the
fields and check the values. Can I do this and how? And
if, not, is there a shortcut to doing this rather than
passing a function like
GetMinutes(minutes1, minutes2, ...)
or (gasp!) one hell of a nested iif statement.
Thanks!
-Mark