F
Fiachra
Hi
Iam trying to validate a text box, the user will enter a trainer name and I
want to make sure that the trainer exists in the workshop table. Instead of
comparin the name entered to the column trainer in the workshop table it
replace the name of the trainer in the first workshop record in the table
with the name entered by the user
Name = "X"
Name= DLookup("[Trainer]", "[WorkShop]", "[Trainer]='" & Me![Trainer]&
"'") & ""
If Name = "" Then
MsgBox "WorkShop Does not Exist, Please Try Again"
Trainer = ""
Exit Sub
End If
If you can have a look at my code above and see if there is anything wrong
that would be great.
Thanks
Fiachra
Iam trying to validate a text box, the user will enter a trainer name and I
want to make sure that the trainer exists in the workshop table. Instead of
comparin the name entered to the column trainer in the workshop table it
replace the name of the trainer in the first workshop record in the table
with the name entered by the user
Name = "X"
Name= DLookup("[Trainer]", "[WorkShop]", "[Trainer]='" & Me![Trainer]&
"'") & ""
If Name = "" Then
MsgBox "WorkShop Does not Exist, Please Try Again"
Trainer = ""
Exit Sub
End If
If you can have a look at my code above and see if there is anything wrong
that would be great.
Thanks
Fiachra