Hello,
I right away feel the need to emphasize just how much of a newbie I am to Access. I say that because I expect the answer to my problem here is going to be so simple that it's going to piss me off when I find out what it is.
So, without further delay...
I'm getting an error message when I open my form. The error message is:
"The expression On Current 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 Active X Control."
Here is my code:
I previously had this (very simple) form running without any issues. The problem occurred after I was trying to add a search box to my form. I actually thought at first I was getting the error because of that search box code, but I've since deleted it all, including the associated text boxes and I'm still getting this error.
Thanks very much for your help
~FOX~
I right away feel the need to emphasize just how much of a newbie I am to Access. I say that because I expect the answer to my problem here is going to be so simple that it's going to piss me off when I find out what it is.
So, without further delay...
I'm getting an error message when I open my form. The error message is:
"The expression On Current 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 Active X Control."
Here is my code:
Code:
Private Sub Form_Current()
Me.PO.Enabled = Me.Parts_On_Order
Me.Parts_ETA.Enabled = Me.Parts_On_Order
Me.Parts_Notes.Enabled = Me.Parts_On_Order
Me.Part_Numbers_Description.Enabled = Me.Parts_Required
Me.Parts_Required_By.Enabled = Me.Parts_Required
End Sub
Private Sub Parts_On_Order_Click()
If Me!Parts_On_Order.Value = True Then
Me!PO.Enabled = True
Me!Parts_ETA.Enabled = True
Me!Parts_Notes.Enabled = True
Else
Me!PO.Enabled = False
Me!Parts_ETA.Enabled = False
Me!Parts_Notes.Enabled = False
Me!PO.Value = Null
Me!Parts_ETA.Value = Null
Me!Parts_Notes.Value = Null
End If
End Sub
Private Sub Parts_Required_Click()
If Me!Parts_Required.Value = True Then
Me!Part_Numbers_Description.Enabled = True
Me!Parts_Required_By.Enabled = True
Else
Me!Part_Numbers_Description.Enabled = False
Me!Parts_Required_By.Enabled = False
Me!Part_Numbers_Description.Value = Null
Me!Parts_Required_By.Value = Null
End If
End Sub
Thanks very much for your help
~FOX~