Scott, this is pretty straight forward. You first need to select Database from the Crystal Reports menu and select Set Datasource Location. On that screen you need to change the database to your application database name. It may show in the list or you may need to use Create New connection to add it. For each table showing in the top panel you will need to locate that same table in the bottom panel and click the Update button so that Crystal Reports is pointing to your application database. Once you have complete this select Database again and select Database Expert. Drill down to the SNote table in your application database on the left panel and click the right arrow to add that table to the report. You will have to go through the dbo\tables layer to find SNote. Once the table is added in the right panel, click the Links tab and connect the table for which you have notes to SNote using the field NoteId from your table and the field NId from the SNote table. If the source table in your report uses a view instead of the actual source table you may need to modify that view or also add the source table to the report as a connection link to the SNote table by connecting the appropriate fields in the view to the source table fields under the Links tab. Once the SNote table has been added and linked, you can go to the report layout and add the sNoteText field to the report body. It is suggested that you add this field in a new detail section and suppress that section if RIPARAM("NotesOn") = "0". That way, records with no note attached do not take up blank space on the report. You did not indicate what report you wanted to do this with so the above is just a general description of the process.
↧