BamaColtsFan
Registered User.
- Local time
- Today, 14:49
- Joined
- Nov 8, 2006
- Messages
- 91
Okay, so there I was...
No really, I'm trying to send the content of a form to an external file using VBA. I'm pretty sure that the OutPutTo method is the proper way to do it but I can't seem to get it right. The code below will execute and the file is properly formatted. The only problem is that it is blank. I've tried several different formats (Excel, RTF, Text...) and I get the same with all of them. It appears to execute fine but the results file is blank. Any idea what I'm doing wrong here? Interestingly, I can open the form and export it directly to a PDF file and it looks great.
As always, I appreciate the help you guys give!
THNX
No really, I'm trying to send the content of a form to an external file using VBA. I'm pretty sure that the OutPutTo method is the proper way to do it but I can't seem to get it right. The code below will execute and the file is properly formatted. The only problem is that it is blank. I've tried several different formats (Excel, RTF, Text...) and I get the same with all of them. It appears to execute fine but the results file is blank. Any idea what I'm doing wrong here? Interestingly, I can open the form and export it directly to a PDF file and it looks great.
Code:
DoCmd.OutputTo acOutputForm, "frmStatusByCatFinal", acFormatXLS, strPath, True
As always, I appreciate the help you guys give!
THNX