endofwar
04-18-2004, 04:40 PM
i got an autonumber 2 textbox called "CustomerID", and "Customer Name" i got a button called "new"
The code for new button is:
Private Sub cmdAdd_Click()
Adodc1.Recordset.AddNew
Both textbox and button are linked with ADodc, now when i click on new button both textboxes clear.
The problem is that the textbox "CustomerId" is an autonumber i dont want it to clear i want it to show the next number.
For example:
Currently in CustomerId textbox the number is 10 i click on new button the customer name filed clear and customerid textbox becomes 11.
How would i solve this problem
The code for new button is:
Private Sub cmdAdd_Click()
Adodc1.Recordset.AddNew
Both textbox and button are linked with ADodc, now when i click on new button both textboxes clear.
The problem is that the textbox "CustomerId" is an autonumber i dont want it to clear i want it to show the next number.
For example:
Currently in CustomerId textbox the number is 10 i click on new button the customer name filed clear and customerid textbox becomes 11.
How would i solve this problem