ASC("CurrentID") will always return 67 because "CurrentID" is a string literal that starts with "C"
If I have read the code correctly;
Code:
NewDetailID = CHR(ASC(right(CurrentID,1)) +1)
will get you what you need in a single line of code.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 05-07-2007 at 05:56 PM..
Reason: added code tags
|