IN MY SUBFORM I PUT BELOW CODE:
on the subform "C_ACODE" field i wanted to call the value from MainForm.Customs_Code.Column(2) as a default value.
but the above code is not working.
On the SubForm where ever the C_Code is "c" i wanted to update the C_ACODE as MainFrom Customs_Code.Column(2)
ragu![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
Code:
Private Sub Amount_AfterUpdate()
If Me.C_Code = "c" And Me.Cost = 0 Then
Me.Cost = Me.Amount
[RED]Me.C_ACODE = [Forms].[CusMaster].[Customs_Code].Column(2)[/RED]
Else
Me.Cost = Me.Cost
End If
End Sub
but the above code is not working.
On the SubForm where ever the C_Code is "c" i wanted to update the C_ACODE as MainFrom Customs_Code.Column(2)
ragu
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)