Jack Spratt
Registered User.
- Local time
- Today, 15:32
- Joined
- Nov 4, 2007
- Messages
- 20
I have a lot of query fields that I need to compare in a function that I call as part of an expression in a db query column.
I am wondering if it is possible to pass the entire row to the vb function (or can it somehow be accessed) ?
This is what i'd like to do (if this was the right syntax/approach)
something like this in the query column:
=GetGroupDescription([myrow])
something like this in the module:
function GetGroupDescription(myrow As DBROW)
if DBROW.Flag1 = true then GetGroupDescription = "group 1"
if DBROW.Flag2 = true then GetGroupDescription = "group 2"
if DBROW.Flag3 = true then GetGroupDescription = "group 3"
End Function
(the compares are much more complex than this example and involve thirty or more flags !)
thanks
I am wondering if it is possible to pass the entire row to the vb function (or can it somehow be accessed) ?
This is what i'd like to do (if this was the right syntax/approach)
something like this in the query column:
=GetGroupDescription([myrow])
something like this in the module:
function GetGroupDescription(myrow As DBROW)
if DBROW.Flag1 = true then GetGroupDescription = "group 1"
if DBROW.Flag2 = true then GetGroupDescription = "group 2"
if DBROW.Flag3 = true then GetGroupDescription = "group 3"
End Function
(the compares are much more complex than this example and involve thirty or more flags !)
thanks