Since you're treating the number as a string essentially, the easiest thing to do is probably just use the Left(), Mid(), and Right() functions as needed to get the numbers you need out of the user's input. For your first example if you know it's 4 digits and you only want the third digit it would just be this: Mid(theInput, 3, 1)
For your second example it would just be this: Right(theInput, 2) Hope that helps, Matt On 4/23/05, Tim Starling <[EMAIL PROTECTED]> wrote: > > > > I need to validate a code that is entered into a form and need to be able to > strip certain numbers out of the ones submitted. There will always be 4 > numbers submitted but what would be the easiest way to take a set of numbers > like 4765 and strip away the 1st, 2nd, and 4th number to just end up with > the value of 6? Or to strip the last two out and end up with 65? > > > > Thanks, > > Tim > > > > -- Matt Woodward [EMAIL PROTECTED] http://www.mattwoodward.com ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
