Hi there!
I am a newbie in MS Access VBA and my first time to post here, i am trying to update data from different tables using if condition and dlookup
This is what i wrote:
Private Sub Parameter_AfterUpdate()
If ([Resul_tb]![ typeofsample].Value = "Sea water") Then
VMA = DLookup("VMA", "tb_para", "ID =" & Parameter)
Else
MsgBox ("Something went wrong")
End If
End Sub
Thanks in advance