M
MikeCCC
Hello
I'm trying (and have been for ages) to get this right but am having big
problems. Any help would be really greatly appreciated.
To stop a client being placed on our records twice and am trying using the
BeforeUpdate of the input form ([cboName2]) to give a msg if they already
have a record.
Table - tblClients = Form – frmClients
Field(txt) - CD1stName = cboName1
Field(txt) – CDSurname = cboName2
Private Sub Surname_AfterUpdate()
If (Eval("DLookUp(""[CDClientID]"",""tblClients"",""[CD1stName] =
Me.[cboName1]""And Form.[CDSurname] = [cboName2]")) Then
MsgBox "Test Box", vbOKOnly, "Already in records"
End If
End Sub
Many thanks in advance.
Mike
I'm trying (and have been for ages) to get this right but am having big
problems. Any help would be really greatly appreciated.
To stop a client being placed on our records twice and am trying using the
BeforeUpdate of the input form ([cboName2]) to give a msg if they already
have a record.
Table - tblClients = Form – frmClients
Field(txt) - CD1stName = cboName1
Field(txt) – CDSurname = cboName2
Private Sub Surname_AfterUpdate()
If (Eval("DLookUp(""[CDClientID]"",""tblClients"",""[CD1stName] =
Me.[cboName1]""And Form.[CDSurname] = [cboName2]")) Then
MsgBox "Test Box", vbOKOnly, "Already in records"
End If
End Sub
Many thanks in advance.
Mike