B
burgundy
I am trying, without success, to initialize a form. I made the form as simple
as possible but the problem persists.
I have one form (named “frmInputâ€) with one text box (named “txArtIDâ€).
There are no other objects in the project.
I define one subroutine
Private Sub ClrScreen()
txArtID.Value = "abc" ‘ I plan to change this to txArtID.Value = “†when I
get this error resolved
‘ I also tried txArtID.Text = “†in case I had forgotten which property
required that the text box have ‘ the focus
End Sub
In the form’s “OnOpen†event, I define the event procedure to run the
ClrScreen subroutine in VBA code
Private Sub Form_Open(Cancel As Integer)
ClrScreen
End Sub
When I open the form, I get the following error message
“The expression On Open you entered as the event property setting produced
the following error: A problem occurred while Microsoft Office Access was
communicating with the OLE Server or ActiveX Control.â€
What am I doing wrong? I’ve carefully checked spelling. I tried switching
the order of the two subroutine definitions. I don’t know what else to try.
There are no other objects in the project (I stripped it down to this
minimum to be sure something else wasn’t causing the problem). The only other
code in the project is the “Option Compare Database†line added by Access
above both of the VBA Subs that I added.
I’m using MS Access 2003 and Windows XP. And, as this question shows, I’m a
relative newbie.
Any Help? Please!
Paul Core
as possible but the problem persists.
I have one form (named “frmInputâ€) with one text box (named “txArtIDâ€).
There are no other objects in the project.
I define one subroutine
Private Sub ClrScreen()
txArtID.Value = "abc" ‘ I plan to change this to txArtID.Value = “†when I
get this error resolved
‘ I also tried txArtID.Text = “†in case I had forgotten which property
required that the text box have ‘ the focus
End Sub
In the form’s “OnOpen†event, I define the event procedure to run the
ClrScreen subroutine in VBA code
Private Sub Form_Open(Cancel As Integer)
ClrScreen
End Sub
When I open the form, I get the following error message
“The expression On Open you entered as the event property setting produced
the following error: A problem occurred while Microsoft Office Access was
communicating with the OLE Server or ActiveX Control.â€
What am I doing wrong? I’ve carefully checked spelling. I tried switching
the order of the two subroutine definitions. I don’t know what else to try.
There are no other objects in the project (I stripped it down to this
minimum to be sure something else wasn’t causing the problem). The only other
code in the project is the “Option Compare Database†line added by Access
above both of the VBA Subs that I added.
I’m using MS Access 2003 and Windows XP. And, as this question shows, I’m a
relative newbie.
Any Help? Please!
Paul Core