In my Access 2010 app, I get wierd results results when exporting records to .rtf (and other formats as well.) The end-goal of my app is to export selected records to an .rtf file, so the user can cut/paste them into a Word doc. The problem
is that exported records are repeated in the output file. Here's a high-level explanation of the functionality...
I have a search form. A sample search sends 63 resulting records in a separate popup form. The user can select via checkboxes in each returned record on the popup form which records to send to a report. The search
results form has a "Open Report" button that they can click to create the report containing the selected records. The resulting report has a Export button which exports/prompts to save an .rtf file. Up to then, the
63 records look fine... I can scroll through all 63 distinct records.
The problem is that in the export file, records #1, #2, and #3 look fine, but then #3 repeats, i.e., exported records #4 through #63 are replaced by #3.
By the way, I get same issue -- repeated records -- when exporting to an .html file.
Lastly, in case it matters, the report records are composed of concatenated labels and fields, something like...
="label1: " & [field1] & "-" & [field2] & "<p><p>More label: " & [field3] & IIf([Forms]![frmSearch].[field4] And [field5]>"","<p><p>...
etc., etc.
However, I don't think the composition of the exported records is the problem because as I said, the first few are exported to the .rtf file fine before the 3rd one starts to repeat.
Do you have any ideas what could be happening here? Thanks!