I'm trying to migrate a VB app I have to the web.
I'm using InterDev to build .asp pages.
I've created a form that accepts a customer account number and then retrieves information about that account when a button is clicked.
It works great except that the database I'm querying uses a 9-character text field for the account number. So if the account number the user is looking up only has 7 digits, it needs 2 leading zeros.
In VB, I have have a validation procedure in the Lost_Focus event that checks the length of the entered text and if len(Cust_No) < 9, it adds a '0' to the front of the account number and then loops until len(Cust_No)=9.
How do I do the same thing in my web page?
Thanks in advance. _________
Rott Paws
I'm using InterDev to build .asp pages.
I've created a form that accepts a customer account number and then retrieves information about that account when a button is clicked.
It works great except that the database I'm querying uses a 9-character text field for the account number. So if the account number the user is looking up only has 7 digits, it needs 2 leading zeros.
In VB, I have have a validation procedure in the Lost_Focus event that checks the length of the entered text and if len(Cust_No) < 9, it adds a '0' to the front of the account number and then loops until len(Cust_No)=9.
How do I do the same thing in my web page?
Thanks in advance. _________
Rott Paws