S
sjsean
I am hoping this is possible, but I haven't found much information
searching the web or the groups. I have a table of rules which I want
to use for examining a second table of actual data and then make
appropriate updates.
I pull both sets into a recordset and then run the rules recordset
record against the data recordset records to determine matching
situations and if a match occurs update that record with further
details also contained in the rules table/recordset.
The problem I am running into is the only way my If ... Then
statements work is if I hard code the conditional of Like, =, Not
like, etc. I can hard code this, but I was hoping there was a way to
pull the operand into the statement from the rules table and do the
whole thing that way. If I do try the statement via the rules table I
get an error of type 13 and type mismatch.
Is there a way to do this efficiently? My rules table has the
conditional field set as a text field which may not be right, but then
what to do when the value is like or not like or left or right.
rules table:
field1 = acct_number
comparison1 = "="
value1 = "3"
businessid = 2000
essentially I want: If acct_number = "3" then do something
Thanks!
Sean
searching the web or the groups. I have a table of rules which I want
to use for examining a second table of actual data and then make
appropriate updates.
I pull both sets into a recordset and then run the rules recordset
record against the data recordset records to determine matching
situations and if a match occurs update that record with further
details also contained in the rules table/recordset.
The problem I am running into is the only way my If ... Then
statements work is if I hard code the conditional of Like, =, Not
like, etc. I can hard code this, but I was hoping there was a way to
pull the operand into the statement from the rules table and do the
whole thing that way. If I do try the statement via the rules table I
get an error of type 13 and type mismatch.
Is there a way to do this efficiently? My rules table has the
conditional field set as a text field which may not be right, but then
what to do when the value is like or not like or left or right.
rules table:
field1 = acct_number
comparison1 = "="
value1 = "3"
businessid = 2000
essentially I want: If acct_number = "3" then do something
Thanks!
Sean