TLowder
Programmer
- Mar 20, 2002
- 224
Hello,
Error 419 (permission to use object denied)
I've solved the problem but I thought I would share the issue to see if anyone has any comments or if it might help someone else if they encounter the issue. Under the XP Admin account it works fine but under User I was getting this error when accessing the form. I seem to be having more and more issues come up with User accounts, where before everything worked fine. Maybe its due to newer service pack / windows updates.
I found the issue to be caused by a text box that was assigned a data format. Why I had a data format assigned I don't know, it was put their years ago and has been working fine until now on a new computer. I removed the data format and the error went away. I wonder if its like the same issue I had here - ,1533748 setting user permissions, but It wasn't telling me what ocx was causing the error. I tracked it down by putting the form causing the error in its own project, removing all the code, then removing a few controls at a time till it worked. Not that I need to, but I bet if I changed the permissions on some ocx etc. it might work with the data format still there.
Here was the text box -
Thanks
Tom
Error 419 (permission to use object denied)
I've solved the problem but I thought I would share the issue to see if anyone has any comments or if it might help someone else if they encounter the issue. Under the XP Admin account it works fine but under User I was getting this error when accessing the form. I seem to be having more and more issues come up with User accounts, where before everything worked fine. Maybe its due to newer service pack / windows updates.
I found the issue to be caused by a text box that was assigned a data format. Why I had a data format assigned I don't know, it was put their years ago and has been working fine until now on a new computer. I removed the data format and the error went away. I wonder if its like the same issue I had here - ,1533748 setting user permissions, but It wasn't telling me what ocx was causing the error. I tracked it down by putting the form causing the error in its own project, removing all the code, then removing a few controls at a time till it worked. Not that I need to, but I bet if I changed the permissions on some ocx etc. it might work with the data format still there.
Here was the text box -
Code:
Begin VB.TextBox txtNumber
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 1
EndProperty
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 480
Left = 10560
TabIndex = 4
Top = 240
Width = 1320
End
Thanks
Tom