R
Ryan Langton
I'm getting this error in my .adp for the On Got Focus events of my combo
boxes. The On Got Focus event simply populates the drop-down list based on
other form fields (code following the error). The strange thing is that I
have not touched the code since last week when it was working, and when
debugging, the program never reaches my control breaks in the On Got Focus
event. So I am wondering what else could cause this error?
Ryan
+++++++++++++++++++++++++++++++++++++++++++++++++++
The On Got Focus expression you entered as the event property setting
produced the following error: A problem occured while communicating with the
OLE Server or ActiveX control.
* The expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]
* There may have been an error evaluating the function, event or macro
+++++++++++++++++++++++++++++++++++++++++++++++++++
Private Sub cmbVersion_GotFocus()
' Repopulate drop-down list based on Software Title
Dim stQuery As String
stQuery = "SELECT Version FROM tblSoftwareOwnership WHERE " & _
"tblSoftwareOwnership.SoftwareTitle = '" & cmbSoftwareTitle & "'
GROUP BY Version"
cmbVersion.RowSource = stQuery
End Sub
boxes. The On Got Focus event simply populates the drop-down list based on
other form fields (code following the error). The strange thing is that I
have not touched the code since last week when it was working, and when
debugging, the program never reaches my control breaks in the On Got Focus
event. So I am wondering what else could cause this error?
Ryan
+++++++++++++++++++++++++++++++++++++++++++++++++++
The On Got Focus expression you entered as the event property setting
produced the following error: A problem occured while communicating with the
OLE Server or ActiveX control.
* The expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]
* There may have been an error evaluating the function, event or macro
+++++++++++++++++++++++++++++++++++++++++++++++++++
Private Sub cmbVersion_GotFocus()
' Repopulate drop-down list based on Software Title
Dim stQuery As String
stQuery = "SELECT Version FROM tblSoftwareOwnership WHERE " & _
"tblSoftwareOwnership.SoftwareTitle = '" & cmbSoftwareTitle & "'
GROUP BY Version"
cmbVersion.RowSource = stQuery
End Sub