Friday, March 30, 2012
Imbricated transactions
Should I specify a particular isolation level ?
Any ideas or tricks are welcome.
ThanXYes you can have nested transactions.
When I have complex work to perform or cascading delets, I set IMPLICIT_TRANSACTIONS to on and then manage commits/rollbacks myself. Otherwise I stick to AUTOCOMMIT.
I would encourage you to look up "transactions, described" in Books On Line.
Friday, February 24, 2012
IIF String Contains a value?
I want to create an IIF expression that changes the color of a field based on if a string value contains a 4 or 5 Any ideas on how to accomplish this?
Hi,
You can write an iif() expression in the background color property of that field.
The following expression will help:
iif(instr("string5",5) or instr("string4",4),"Gray","White")
You can change the color by choosing what u require from the constants provided else custon color.
Somiya
|||Thanks, but I think I need a little more help. The value I need to look for will be in a string like "3,4,6,8" so I think I need the Like conparison function, but I'm not sure of the syntaxThe psudo code is this:
If instrI(String) contains a 4 or instrI(String) contains 5 display in Red else Black
Do you know what the syntax should be for IIF with a like conparison?|||
i think the same expression should work in a way similar to Like.
An iff() expression with Like operator would be in this case:
iif(("3,4,6,8" Like "*4*") or ("3,4,6,8" Like "*5*") ,"Red",Black")
* is for any 4 preceeding and followed with any number of characters
Somiya