|
I am trying to resolve a problem. I have the following.
One dataset, we'll call dsPatientInformation
Table #1 inside dsPatientInformation called tbPatientDemo. tbPatientDemo source comes from a SQL DB and has fields, PatientID, PatientName, PatientState
Table #2 inside dsPatientInformation called tbPatientBalance. tbPatientBalance source comes from ACCESS and has two fields, PatientID, PatientBalance
I need data to end up in the following format, PatientID, PatientName, PatientState, PatientBalance
Now yes I could add a new column to Table #1 called PatientBalance, then loop through the rows of Table #1 and perform a lookup on Table #2 to insert the patient balance into my new column.
Using a merge would just append the records from Table #2 into Table #1, that would not solve my problem.
I would love to be able to perform a query of Select Table1.PatientID, Table1.PatientName, Table1.PatientState, Table2.PatientBalance From Table1 Join On Table2 Where Table1.PatientID = Table2.PatientID against the two tables within the dataset, but I cannot find any method to do this.
Any assistance would be appreciated.
Curt Broyles |