By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

disable add record button if any field

P: 3
hi to all,
if any field of data entry user skipped and click to add record button then i want to show a message to complete data entry and not added record in table. so pls help us.
Thanks on advance.
Abdullah Tarique
Jan 14 '15 #1
Share this Question
Share on Google+
1 Reply


Seth Schrock
Expert 2.5K+
P: 2,951
I hope you don't have very many fields. You are going to have to test the value in each control that is bound to a field to make sure that it isn't empty.
Expand|Select|Wrap|Line Numbers
  1. If (Me.Control1 & "" <> "") And (Me.Control2 & "" <> "") Then
  2.     'Code to add the record
  3. Else
  4.     MsgBox "Please complete the entry form."
  5. End If
Jan 14 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.