Here is a good one!
I have an unbound form with textbox txtSerial. There are 2 labels - lblRecallYes and lblRecallNo, and a button cmdRecallCheck.
I want to be able to put any number in the box and check it againt the range of 0607001761 and 070413756, inclusive. The serial numbers entered into txtSerial may or may not have a preceding "0", "00" or "000" in the serial number. However the serial number can also be fewer in digit count, such as 921136. There may also be an occasion where there is text at the end, such as '921136-f' or '921136-failed' or '921136failed' or '921136FAILED', etc..
After the user enters the serial number and click the button. I want it to ignore any text on the end, but check the numeric value only.
The serial numbers entered into txtSerial may or may not have a preceding "0", "00" or "000" in the serial number.
There is no 'Format' to the txtbox under properties.
I have no idea how to attack the serial number checking in vba. I want to use the code under the cmdRecallCheck_Click event. If the serial number is part of the range, then lblRecallYes visible prperty is yes, otherwise show lblRecallNo.
Thanks!
I have an unbound form with textbox txtSerial. There are 2 labels - lblRecallYes and lblRecallNo, and a button cmdRecallCheck.
I want to be able to put any number in the box and check it againt the range of 0607001761 and 070413756, inclusive. The serial numbers entered into txtSerial may or may not have a preceding "0", "00" or "000" in the serial number. However the serial number can also be fewer in digit count, such as 921136. There may also be an occasion where there is text at the end, such as '921136-f' or '921136-failed' or '921136failed' or '921136FAILED', etc..
After the user enters the serial number and click the button. I want it to ignore any text on the end, but check the numeric value only.
The serial numbers entered into txtSerial may or may not have a preceding "0", "00" or "000" in the serial number.
There is no 'Format' to the txtbox under properties.
I have no idea how to attack the serial number checking in vba. I want to use the code under the cmdRecallCheck_Click event. If the serial number is part of the range, then lblRecallYes visible prperty is yes, otherwise show lblRecallNo.
Thanks!