T
Tina
Here's my setup. I have a form with a subform.
The form has the following controls on it....
Customer ID- This is a combo box that uses Customer ID
and Customer Name to pull up records in the subform.
Customer- This control takes it's name from the combo box
with the following code. =ID.Column(1)
Then the Subform has the following controls...
Employee
Customer ID---Automatically filled in from the combo box.
Customer
System_ID
System
Location
City
Then 2 command buttons, Add Record and Delete Record....
This all works perfectly but I can't get the finishing
touch to work. When I click on the "Add Record" button I
want the next available System_ID number to be filled in
per the Customer ID. It was suggested that I use DMax +1
but I've tried different versions of code and I keep
getting error messages...
I want to be able to select customer, click add, then have
the next number in the sequence for System_ID for each
individual customer to fill in the System_ID text box.
Any advice that can be offered would be greatly
appreciated!!! Thanks again for any advice!
The form has the following controls on it....
Customer ID- This is a combo box that uses Customer ID
and Customer Name to pull up records in the subform.
Customer- This control takes it's name from the combo box
with the following code. =ID.Column(1)
Then the Subform has the following controls...
Employee
Customer ID---Automatically filled in from the combo box.
Customer
System_ID
System
Location
City
Then 2 command buttons, Add Record and Delete Record....
This all works perfectly but I can't get the finishing
touch to work. When I click on the "Add Record" button I
want the next available System_ID number to be filled in
per the Customer ID. It was suggested that I use DMax +1
but I've tried different versions of code and I keep
getting error messages...
I want to be able to select customer, click add, then have
the next number in the sequence for System_ID for each
individual customer to fill in the System_ID text box.
Any advice that can be offered would be greatly
appreciated!!! Thanks again for any advice!