J
JohnLute
I'm getting a "Type Mismatch" error dialog box when I execute the DblClick
event procedure below. I've reviewed it over and over again and I can't see
the problem.
Any help would be greatly appreciated!
Private Sub ShipUnitDescription_DblClick(Cancel As Integer)
On Error GoTo Err_ShipUnitDescription_DblClick
Dim lngShipUnitDescription As Long
If IsNull(Me![ShipUnitDescription]) Then
Me![ShipUnitDescription].Text = ""
Else
lngShipUnitDescription = Me![ShipUnitDescription]
Me![ShipUnitDescription] = Null
End If
DoCmd.OpenForm "frmFGUnitDescriptions", , , , , acDialog, "GotoNew"
Me![ShipUnitDescription].Requery
If lngShipUnitDescription <> 0 Then Me![ShipUnitDescription] =
lngShipUnitDescription
Exit_ShipUnitDescription_DblClick:
Exit Sub
Err_ShipUnitDescription_DblClick:
MsgBox Err.Description
Resume Exit_ShipUnitDescription_DblClick
End Sub
event procedure below. I've reviewed it over and over again and I can't see
the problem.
Any help would be greatly appreciated!
Private Sub ShipUnitDescription_DblClick(Cancel As Integer)
On Error GoTo Err_ShipUnitDescription_DblClick
Dim lngShipUnitDescription As Long
If IsNull(Me![ShipUnitDescription]) Then
Me![ShipUnitDescription].Text = ""
Else
lngShipUnitDescription = Me![ShipUnitDescription]
Me![ShipUnitDescription] = Null
End If
DoCmd.OpenForm "frmFGUnitDescriptions", , , , , acDialog, "GotoNew"
Me![ShipUnitDescription].Requery
If lngShipUnitDescription <> 0 Then Me![ShipUnitDescription] =
lngShipUnitDescription
Exit_ShipUnitDescription_DblClick:
Exit Sub
Err_ShipUnitDescription_DblClick:
MsgBox Err.Description
Resume Exit_ShipUnitDescription_DblClick
End Sub