Somehow a form has suddenly stopped working. I get the following error:
Run-time error '-2147352567 (80020009)':
You tried to assign the Null value to a variable that is not a Variant data type.
Not a clue what I could have done / changed to cause this to happen but the debugger highlights line 2 (InventoryItem = Null) as being incorrect (see below). Any ideas on how to fix this?
Private Sub Category_AfterUpdate()
InventoryItem = Null
InventoryItem.Requery
End Sub
Private Sub Form_Current()
InventoryItem.Requery
End Sub
Private Sub Command17_Click()
On Error GoTo Err_Command17_Click
DoCmd.Close
Exit_Command17_Click:
Exit Sub
Err_Command17_Click:
MsgBox Err.Description
Resume Exit_Command17_Click
End Sub
Run-time error '-2147352567 (80020009)':
You tried to assign the Null value to a variable that is not a Variant data type.
Not a clue what I could have done / changed to cause this to happen but the debugger highlights line 2 (InventoryItem = Null) as being incorrect (see below). Any ideas on how to fix this?
Private Sub Category_AfterUpdate()
InventoryItem = Null
InventoryItem.Requery
End Sub
Private Sub Form_Current()
InventoryItem.Requery
End Sub
Private Sub Command17_Click()
On Error GoTo Err_Command17_Click
DoCmd.Close
Exit_Command17_Click:
Exit Sub
Err_Command17_Click:
MsgBox Err.Description
Resume Exit_Command17_Click
End Sub