Hi All
I have a little problem I am struggling to work out how to do. I think I know the way it should be done (please correct me if I am wrong) but not sure where to start with code:
I have an application that logs errors for my department, on the logging form there is a number affected textbox, when a user enters it a form pops up asking for the policy numbers to be entered (I work for a financial services firm).
What I need is once the user has entered all the policy numbers into the listbox (got that working) these are then saved somewhere to enter into a policy number table with the error id once its generated.
The only way I can think of doing it at the minute is to take the listbox populate an array, then submit the error, use SELECT @@IDENTITY to get the last inserted PK for errors then take the array and populate the policy number table with the error id added to it??
Would that be right? If so could someone give me some pointers on the code?
Thanks in advance.
Carl
I have a little problem I am struggling to work out how to do. I think I know the way it should be done (please correct me if I am wrong) but not sure where to start with code:
I have an application that logs errors for my department, on the logging form there is a number affected textbox, when a user enters it a form pops up asking for the policy numbers to be entered (I work for a financial services firm).
What I need is once the user has entered all the policy numbers into the listbox (got that working) these are then saved somewhere to enter into a policy number table with the error id once its generated.
The only way I can think of doing it at the minute is to take the listbox populate an array, then submit the error, use SELECT @@IDENTITY to get the last inserted PK for errors then take the array and populate the policy number table with the error id added to it??
Would that be right? If so could someone give me some pointers on the code?
Thanks in advance.
Carl