Empty TextBox

A

Abdul Shakeel

Hi All,

I've a form in which I've several text Boxes some of which are must to be
filled by the user I just want that if user dont put data in any required
textbox a custom massage appears asking for filling the data.

for this purpose I want that I make custom function so I could call this
function anywhere I want this validation.
 
S

scubadiver

in VBA you would need to use

if isnull (whatever) then msgbox 'This field requires data'

alternatively you can make it a required field in the table design
 
Top