RobHVB6Sql
Programmer
Can anyone assist with a 'how to progress' reply here please.
I have a complex select statement to perform in a stored procedure which gathers information for Crystal Report which is then used for presentation.
Before begining the stored procedure I know the PersonID's I want. They are in a grid in VB and prior to this report process have been written to the tblTempClientList table.
If there are no Provider details for a client I still wish to return the person details, only the provider fields will be blank.
I have attempted to:
* create a large working table
* insert information from tblPerson here (with several where clauses)
There is also a long sting passsed in used in this fashion
"AND PersonID NOT IN (748, 921, 922, ...........)"
* insert info related to that client's provider which is also has a joining table (tblClientProvider) between tblPerson and tblProvider (where clauses here also)
- these updates are complex and I have stopped
Can you see an easier way of doing this?
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
I have a complex select statement to perform in a stored procedure which gathers information for Crystal Report which is then used for presentation.
Before begining the stored procedure I know the PersonID's I want. They are in a grid in VB and prior to this report process have been written to the tblTempClientList table.
If there are no Provider details for a client I still wish to return the person details, only the provider fields will be blank.
I have attempted to:
* create a large working table
* insert information from tblPerson here (with several where clauses)
There is also a long sting passsed in used in this fashion
"AND PersonID NOT IN (748, 921, 922, ...........)"
* insert info related to that client's provider which is also has a joining table (tblClientProvider) between tblPerson and tblProvider (where clauses here also)
- these updates are complex and I have stopped
Can you see an easier way of doing this?
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)