Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how to print a copied text file for everytime after updated

Posted on 2003-03-18
5
Medium Priority
?
154 Views
Last Modified: 2010-04-07
ok..
 i used text file to display the records onto my system(inventory system) and i need to print it after i copied it everytime i had the sales. but whenever i need to print it, an error calls that the text file permission in denied. i had tried to change the properties of the files into achive but it still the same error. so pls help me.
tq
0
Comment
Question by:huplim
5 Comments
 
LVL 1

Expert Comment

by:Shivshankar
ID: 8159565
The text file might not have been closed previously and when you might want to open the same again this error will get thrown. Probably some code will help me know the exact reason why the error was thrown. Please paste some code where you open the text file and do the stuff.

Check if you've put Close statements once you're done with the text-file. Ex. Close #1

Rgds
=====
Shiva
0
 
LVL 11

Expert Comment

by:supunr
ID: 8163127
before you print, try putting the "Reset" statement. this will close any open files.

eg...

Reset
call PrintTxtFile()

Good Luck!
0
 

Expert Comment

by:CleanupPing
ID: 8532071
Hi huplim,
This old question (QID 20554777) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 8957159
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-->PAQ - with points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

GPrentice00
EE Cleanup Volunteer
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9023659
Question is PAQ'd and no points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question