Folks,
As usual, I find myself challenged by something that seems simple but I cannot see a way forward.
On code behind forms I run vb and assemble a string as I step through a recordset. The string gives the user the final string in the form msgbox, stringname using Chr$ to provide a simple legible format. All fine. But then the user asks for a printed copy of the msgbox contents. Ah! What to do? I've tried sending the string to a dos file and to a database field. I've also tried to direct the string contents directly to the printer. I know that I should replace the msgbox with a form and work from there but even then I cannot see easily how to store the string contents in a field (or variable)so that a report can be assembled and printed. The msgbox could contain around a 100 characters ...but usually not so many.
Can anyone suggest a way forward? I would rather stick with the msgbox but do understand that's not good practice.
Thanks and regards, Brian
As usual, I find myself challenged by something that seems simple but I cannot see a way forward.
On code behind forms I run vb and assemble a string as I step through a recordset. The string gives the user the final string in the form msgbox, stringname using Chr$ to provide a simple legible format. All fine. But then the user asks for a printed copy of the msgbox contents. Ah! What to do? I've tried sending the string to a dos file and to a database field. I've also tried to direct the string contents directly to the printer. I know that I should replace the msgbox with a form and work from there but even then I cannot see easily how to store the string contents in a field (or variable)so that a report can be assembled and printed. The msgbox could contain around a 100 characters ...but usually not so many.
Can anyone suggest a way forward? I would rather stick with the msgbox but do understand that's not good practice.
Thanks and regards, Brian