A
Anthony Viscomi
I have the following VBA:
Private Sub Command32_Click()
Dim intPos As Double
intPos = DMax("[Position]", "tbl_SubPosition", "[ID_C] =
Forms!frm_Orders_Sub!subfrm_OrderB.Form![ID_B]")
Me.Position = intPos + 0.1
End Sub
My problem is that I receive an "Invalid use of Null" error. I know the
reason, but I don't know the solution.
The ID_C field is has the Default Value set to:
=[Forms]![frm_Orders_Sub]![subfrm_OrderB].[Form]![ID_B]
The cmdButton that triggers this event is on the same form that contains the
ID_C field.
My problem is that the record is be committed to the tbl_SubPosition, thus
there may not be a ID_C value to match the ID_B.
How can I get the record to committ to the underlying to prior to this
event?
Thanks Again,
Anthony
Private Sub Command32_Click()
Dim intPos As Double
intPos = DMax("[Position]", "tbl_SubPosition", "[ID_C] =
Forms!frm_Orders_Sub!subfrm_OrderB.Form![ID_B]")
Me.Position = intPos + 0.1
End Sub
My problem is that I receive an "Invalid use of Null" error. I know the
reason, but I don't know the solution.
The ID_C field is has the Default Value set to:
=[Forms]![frm_Orders_Sub]![subfrm_OrderB].[Form]![ID_B]
The cmdButton that triggers this event is on the same form that contains the
ID_C field.
My problem is that the record is be committed to the tbl_SubPosition, thus
there may not be a ID_C value to match the ID_B.
How can I get the record to committ to the underlying to prior to this
event?
Thanks Again,
Anthony