Hi All
I have customer customer form which was already build 5 years ago.It has custID, custname and other cust details fileds in database.Initia lly CustId also was filled by users.Now they want that field to be autogenerated,S ince it is not a autonumber, i have written a code in the change event of custname.Logic was taking first five letter of entered customer name and then append a variable whose initial value will be 1 which will be incremented on each entry.My doubt is that the variable used to append is declared as long.So if it crosses its limit of size then it will create a problem.So can any one suggest me how to over come this situation or have any other better idea .Thanks in advance
I have customer customer form which was already build 5 years ago.It has custID, custname and other cust details fileds in database.Initia lly CustId also was filled by users.Now they want that field to be autogenerated,S ince it is not a autonumber, i have written a code in the change event of custname.Logic was taking first five letter of entered customer name and then append a variable whose initial value will be 1 which will be incremented on each entry.My doubt is that the variable used to append is declared as long.So if it crosses its limit of size then it will create a problem.So can any one suggest me how to over come this situation or have any other better idea .Thanks in advance
Comment