My code was working fine earlier today, however I've started receiving an error:
"The expression On Enter 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."
I closed and reopened and tried a compact and repair. As far as I can tell, only one of my codes is throwing this error. So far I can't find any functions unique to this sub. Here's the code that's throwing the error:
I also checked my references, and found the following references active:
Visual Basic for Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine Object Library
Microsoft VBScript Regular Expressions 5.5
Microsoft Visual Basic for Applications Extensibility 5.3
None are missing. I have around 200 available references, so it's tough to figure out which ones to test. I tried 3 ActiveX references, but these did not fix the problem. I also have other available references named "Visual Basic for Applications," but I'm not able to swap these out through my VB window.
Any idea what I'm missing?
Thanks,
Tyler
"The expression On Enter 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."
I closed and reopened and tried a compact and repair. As far as I can tell, only one of my codes is throwing this error. So far I can't find any functions unique to this sub. Here's the code that's throwing the error:
Code:
Private Sub AppFee_Enter()
Dim Small As Boolean
Dim AppType As Integer
Dim Fee As Currency
If IsNull(Me.AppType.Value) Then
Exit Sub
Else
AppType = Me.AppType.Value
Small = Me.AppSmallOperator
Fee = DLookup("[Fee]", "[Fees List]", "[FeeTypeID] = 1 And [SmallLarge] = " & Small & " And [SpecialtyTypeID] = " & AppType)
Me.AppFee = Fee
End If
End Sub
I also checked my references, and found the following references active:
Visual Basic for Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine Object Library
Microsoft VBScript Regular Expressions 5.5
Microsoft Visual Basic for Applications Extensibility 5.3
None are missing. I have around 200 available references, so it's tough to figure out which ones to test. I tried 3 ActiveX references, but these did not fix the problem. I also have other available references named "Visual Basic for Applications," but I'm not able to swap these out through my VB window.
Any idea what I'm missing?
Thanks,
Tyler