Hi,
Here's what I want to do. I have a Test Case ID that is comprised of Business Process and a # (ie. Order Entry-1) In my test case table, the combination of these fields serves as the primary key.
Right now I have a form where the user can enter new Test Cases. The form is set up so the user can select the business function from a drop down and then they enter the number that they want. (ie. Order Entry-2)
I want to add a button to the form that will allow for the user to click and auto-generate the next sequential value into the # field for that Business Process. I still want to leave the option for the user to type the value in if they want to, but I want to be able to give them the auto-generate option.
I know how to write a max query. I guess my question is, how do I pass the selected Business Process (ie. Order Entry) on the form to the query and return the max + 1 value to # field.
Also, I only want this button to show on the form if the user is entering a new record.
Any help would be appreciated.
Thanks so much,
Tom
Here's what I want to do. I have a Test Case ID that is comprised of Business Process and a # (ie. Order Entry-1) In my test case table, the combination of these fields serves as the primary key.
Right now I have a form where the user can enter new Test Cases. The form is set up so the user can select the business function from a drop down and then they enter the number that they want. (ie. Order Entry-2)
I want to add a button to the form that will allow for the user to click and auto-generate the next sequential value into the # field for that Business Process. I still want to leave the option for the user to type the value in if they want to, but I want to be able to give them the auto-generate option.
I know how to write a max query. I guess my question is, how do I pass the selected Business Process (ie. Order Entry) on the form to the query and return the max + 1 value to # field.
Also, I only want this button to show on the form if the user is entering a new record.
Any help would be appreciated.
Thanks so much,
Tom