S
Stéphane Vallières
HI Can someone help me
I'm using access 2003 I want to create an invoice and I want some field to
be create automatically.
I want the field lastname and name of the employe to fill out auto when I
enter the employe number
I' ve tried this code
Sub No Employé_onExit (Cancel As Integer)
Dim varNomEmp as Variant
varNomEmp = DLookup("Nom Employé", "employés", "Nom employé =
[Nom employé] ")
if (Not IsNull(varNomEmp))= true Then [Nom employé] = varNomEmp
End Sub
but it's not working...I have no clue of what I'm doing wrong
Thanks in advance
Stéphane
(e-mail address removed) to reply
I'm using access 2003 I want to create an invoice and I want some field to
be create automatically.
I want the field lastname and name of the employe to fill out auto when I
enter the employe number
I' ve tried this code
Sub No Employé_onExit (Cancel As Integer)
Dim varNomEmp as Variant
varNomEmp = DLookup("Nom Employé", "employés", "Nom employé =
[Nom employé] ")
if (Not IsNull(varNomEmp))= true Then [Nom employé] = varNomEmp
End Sub
but it's not working...I have no clue of what I'm doing wrong
Thanks in advance
Stéphane
(e-mail address removed) to reply