Minty
AWF VIP
- Local time
- Today, 13:23
- Joined
- Jul 26, 2013
- Messages
- 10,354
Actually the active object is the report that is open, and the code is run from it.
I'm not sure you can reference it that way. Certainly your error is nothing to do with that.
Like I said, create a form with all your records and simply open a filtered report to that record and output it.
Your file process checking should be (in order)
1. Does the folder and subfolder exist, if not create it.
2. Does the file exist, if it doesn't simply create it.
2.1 If it does ask user if they want to overwrite it.
2.2 Create the file or exit based on their answer.
I'm not sure you can reference it that way. Certainly your error is nothing to do with that.
Like I said, create a form with all your records and simply open a filtered report to that record and output it.
Your file process checking should be (in order)
1. Does the folder and subfolder exist, if not create it.
2. Does the file exist, if it doesn't simply create it.
2.1 If it does ask user if they want to overwrite it.
2.2 Create the file or exit based on their answer.