G
Guest
Hi,
I want my combobox to insert the value of its 2nd column into the "Address"
field for the current record if the name was chosen from the list (the combo
is not limited to list).
So I wrote the event procedure as follows:
Private Sub Paid_AfterUpdate()
If (T_SPENT.ID = Forms!Spent.ID And Forms!Spent!Paid = S_T_Person.Name) Then
Me.Address = Me.[Paid].Column(1)
End If
End Sub
But this doesn't seem to work.
I am not good at writing scripts. I tried also "If () And If() Then" -
doesn't work either.
Can anybody advise me something?
Thank you.
Lana
I want my combobox to insert the value of its 2nd column into the "Address"
field for the current record if the name was chosen from the list (the combo
is not limited to list).
So I wrote the event procedure as follows:
Private Sub Paid_AfterUpdate()
If (T_SPENT.ID = Forms!Spent.ID And Forms!Spent!Paid = S_T_Person.Name) Then
Me.Address = Me.[Paid].Column(1)
End If
End Sub
But this doesn't seem to work.
I am not good at writing scripts. I tried also "If () And If() Then" -
doesn't work either.
Can anybody advise me something?
Thank you.
Lana