Access Denied trying to Open COM1

ian_w

Registered User.
Local time
Today, 17:58
Joined
Jun 13, 2006
Messages
64
I have a printer attached to COM1 which I print barcodes to, when I try to run the code I get a File/Access Denied Error 75 message.

Is there anything in Access 97 that could be causing this?

Ian
 
When accessing a port directly, don't you have to do some kind of 'open' command before you send data to it?
 
Its the Open Command that its failed on, I have

Open "COM1" for Output As #1

Problem is as soon as it hits the open it fails with access denied !
 
Did you have it working in a previous version of Access or is this your first shot at it?
 
Did you have it working in a previous version of Access or is this your first shot at it?
 
It works when we run it on NT4, we have put in some new XP machines which refuse to print on COM1 :rolleyes:

From all the testing I have done so far it appears to be a group policy option I think
 
Hum... I was thinking that you may have to use some kind of control to manage access to a port...

Do you have another app that accesses the port?
 
Yes, We have a app called 'Barcode' this initializes the printer and sends the .BAS file to it.
 
Wouldn't that eliminate the access rights error possibility?
 
Im all but convinced now that its a group policy issue, if I log on to the machine locally then it works fine, with a network logon the permissions are incorrect and it fails

Thanks for the help, hopefully I can track the policy problem down!
 
Hum... Cool trick - I'll file that one away for later use. :)
 

Users who are viewing this thread

Back
Top Bottom