Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command does not work if user has not filled in a feild

Status
Not open for further replies.

oggsta

Technical User
Jun 22, 2002
41
GB

After the user hits the button in an Access form, i would like a VB program to determine

If a field is blank, named [dcfdate]a message appears to say date feild is blank, please update information and hit the button again.

Otherwise it runs the command to generate with word.

Any help appreciated. Regards
 
Easy...

if len ([dcfdate] & "") > 0 then
' run program
else
msgbox "you haven't entered information. please do it and try again", vbOkOnly+vbInformation
end if

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top