If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
#ERROR question
My formula:
Mid([f1],InStr(10,[f1],": ")-1) returns #ERROR if the value is blank, otherwise works fine. Any ideas how to change my formula to get beyond the #ERROR? Thanks mike -- Message posted via http://www.accessmonster.com |
#2
|
|||
|
|||
#ERROR question
On Fri, 19 Jun 2009 18:30:25 GMT, "Elmtree via AccessMonster.com" u45848@uwe
wrote: My formula: Mid([f1],InStr(10,[f1],": ")-1) returns #ERROR if the value is blank, otherwise works fine. Any ideas how to change my formula to get beyond the #ERROR? Thanks mike IIf(InStr([f1], ": ") = 0, "", Mid([f1],InStr(10,[f1],": ")-1)) -- John W. Vinson [MVP] |
#3
|
|||
|
|||
#ERROR question
Mid doesn't play well with 0, negative numbers, or nulls.
IIf(Len([f1])10, Mid([f1],InStr(10,[f1],": ")-1),Null) Or maybe IIf(InStr(10,[f1],": "10, Mid([f1],InStr(10,[f1],": ")-1),Null) -- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder. "Elmtree via AccessMonster.com" wrote: My formula: Mid([f1],InStr(10,[f1],": ")-1) returns #ERROR if the value is blank, otherwise works fine. Any ideas how to change my formula to get beyond the #ERROR? Thanks mike -- Message posted via http://www.accessmonster.com |
Thread Tools | |
Display Modes | |
|
|