A validation Problem

Dear all,

I am a newbie to coding.

In customer card , I want to write a code in ‘Name’ text box, that it should not be empty i.e I wants to make it compulsory.

What code is required and on which trigger ?

In the OnModify trigger

testfield(Name)

Why do you want to do this?

I want to do it, cause, Sometimes our end-users are just creating a customer without giving any entry in ‘name’ text box.

onModify trigger of Text box or Form ?

Cann’t we write this code on Closing the form, so that user cann’t close the form ,without entering customer name.

Search the forum for making a field mandatory. You’ll find your answer

It should be on the OnModify trigger of the Table.

Savatage is right – the search function is your friend.[:)]