If (lngAffected < 1) then
Msgbox "Record does not exist"
Exit Function
End If
[\code]
How do I change the if stmt so it's:
[code]
if (lngAffected < 1) then Msgbox "Record does not exist" Exit Function
[\code]
Thanks.
Get new management -- the current one is an idiot and doesn't realize that multiple statements on a single line make software maintenance harder (i.e. more expensive).
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
rds747, I suspected it might be an uninformed diktat (which is why I posed the question). And I have to agree with chiph's response
Note that at the compiler level, both statements are completely syntactically similar and will almost certainly generate the same code - so there's no performance gain in either speed or code size to weigh up against the reduction in legibility and clarity
Sounds like someone went from second year college programming to sales to management.....at least, this is a fairly reliable "uninformed diktat" recipe.
Well, we don't mean idiot in the sense of having a low IQ. Perhaps "pig-headed" better describes what we're trying to convey. (Personally, I particularly like "uninformed diktat".)
<Is quick with his logic and common sense.
Well, demanding that your reports eschew best practices in the name of less-maintainable code doesn't seem to show a whit of common sense, although it probably does indeed require a gifted logician to successfully argue the point of view.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.