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? Access 2007. Thanks mike -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/200906/1 |
#2
|
|||
|
|||
#ERROR question
Test it first --
IIF(InStr(10,[f1],": ")0, Mid([f1],InStr(10,[f1],": ")-1),"") "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? Access 2007. Thanks mike -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/200906/1 |
#3
|
|||
|
|||
#ERROR question
Test first
IIF(F1 Like "?????????*: *",Mid(Instr(10,F1,": ")-1),Null) Or if it is only nulls that are failing IIF(F1 is Not Null,Mid([f1],InStr(10,[f1],": ")-1) ,Null) John Spencer Access MVP 2002-2005, 2007-2009 The Hilltop Institute University of Maryland Baltimore County 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? Access 2007. Thanks mike |
Thread Tools | |
Display Modes | |
|
|