J
Jacques Steinman
In one of the previous posts it waas suggested that for field updating based
on a selection I should use the following code:
Private Sub d_itemid_AfterUpdate()
With Me.d_itemid
If Not IsNull(.Value) Then
Me.d_cost = .Column(3)
End If
End With
End Sub
This does the job, but Id like to update more than one field. Can I simply
add another line like this:
Private Sub d_itemid_AfterUpdate()
With Me.d_itemid
If Not IsNull(.Value) Then
Me.d_cost = .Column(3)
Me.d_maxsell = .Column(5)
End If
End With
End Sub
Would this work?
on a selection I should use the following code:
Private Sub d_itemid_AfterUpdate()
With Me.d_itemid
If Not IsNull(.Value) Then
Me.d_cost = .Column(3)
End If
End With
End Sub
This does the job, but Id like to update more than one field. Can I simply
add another line like this:
Private Sub d_itemid_AfterUpdate()
With Me.d_itemid
If Not IsNull(.Value) Then
Me.d_cost = .Column(3)
Me.d_maxsell = .Column(5)
End If
End With
End Sub
Would this work?