Hi all, this is my first post. Im working on a VB6 application which uses CR8.5 to generate reports. In one of my reports, I need to add a field. Here is the situation:
All data is stored in Access tables, and im using an ODBC connection. In a table called PatientInfo, there is data about all patients and the field I am specifacally working with stores their last therapy session. We'll call this field therapyDate. In another table called PatientTransactions, we keep track of all the status transactions for each patient, and the date of the transaction, in a field called TransDate. An example of a transaction would be the therapy session I just mentioned. There is another field in PatientTransactions called FinancialClass. This is the field I need to access. Basically I need to do some sort of lookup where I can display the FinancialClass of a patient where PatientInfo.therapyDate = PatientTransactions.TransDate.
If I were writing a SQL Statement, I would say
SELECT FinancialClass FROM PatientTransactions WHERE TransDate = PatientInfo.therapyDate
Please Help, I have no idea what Im doing. Thank you
All data is stored in Access tables, and im using an ODBC connection. In a table called PatientInfo, there is data about all patients and the field I am specifacally working with stores their last therapy session. We'll call this field therapyDate. In another table called PatientTransactions, we keep track of all the status transactions for each patient, and the date of the transaction, in a field called TransDate. An example of a transaction would be the therapy session I just mentioned. There is another field in PatientTransactions called FinancialClass. This is the field I need to access. Basically I need to do some sort of lookup where I can display the FinancialClass of a patient where PatientInfo.therapyDate = PatientTransactions.TransDate.
If I were writing a SQL Statement, I would say
SELECT FinancialClass FROM PatientTransactions WHERE TransDate = PatientInfo.therapyDate
Please Help, I have no idea what Im doing. Thank you