473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

disable add record button if any field

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
1 845
Seth Schrock
2,965 Expert 2GB
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

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

Similar topics

1
by: Ben | last post by:
I have a Tabular form bound to a table. The purpose of this form is to get times from a timer and record them in a field. The timer dumps the time automatically through a serial port. When the time...
1
by: Selen | last post by:
How can I disable save button in Word Documents from asp.net c#..... And I am saving Word documet to sql server database (Blob-image field)How can I undersatand when user open the document from...
6
by: jack-e | last post by:
Hi, Can someone please provide me with an example of how to disable the submit button once clicked (using javascript i guess). Keep in mind I also have to invoke a server side function which...
16
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
8
by: GS | last post by:
Hi, This is probably known solution but I have not found it in minimum amount of code. I'd like to disable button on client-side after clicking on it. Just disabling it in javascript do not...
2
by: bkunjitam | last post by:
Hi, I am using Python 2.5. I have an entry field and a radio button. I need to disable the entry field when the radio button is selected. How do i change the state to DISABLED in run time. ...
1
by: srinivasarao yarru | last post by:
hi friends, i am getting one problem in my software can you plz try to currect that thing. In my project total 5 tables are there.from table 3 onwards i gave composite primarey key. ...
3
by: KMEscherich | last post by:
Hi there, I have a Save REQUIRED fields button and when all required fields have been filled in, the Save REQUIRED fields button becomes enabled. I have created a DATE field so that when the button...
11
didajosh
by: didajosh | last post by:
I have made a form and added navigation buttons using the wizard. When the focus is on the first Record, I want the "Previous Record Button" to disable. So in the code in Click event I want to...
1
by: Abdullah Tariqu | last post by:
I am using access 2007 form I want to disable add record button if any field of form is null else add record as per validation So pls help me Thanks in advance Abdullah
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.