473,385 Members | 1,587 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,385 software developers and data experts.

How to add a pop up alert for missing field in FORMS

1
Hello,

How do I create a pop-up alert stating that a field on my form is empty?
I do understand that I can make that field required but I want to be able to customize the pop-up from microsoft access (this would be option 2)
I do not know how to code...so any help I can get would be great
Nov 13 '15 #1
2 870
zmbd
5,501 Expert Mod 4TB
This depends on how you have set up the control.
Is it bound to a record source?
etc...
Nov 13 '15 #2
strive4peace
39 Expert 32bit
if the form is bound to data, there will be an event on the form before data is updated where data validation can be done.

Go to the design view of the form.

turn on the Property Sheet if it is not showing by pressing Alt-Enter

The Property Sheet shows additional information about what is selected.

Click in the upper left where the rulers intersect to select the form.

On the Property Sheet, click on the Event tab, and then in the BeforeUpdate event.

Click on the DropDown arrow and choose [Event Procedure] from the list.

Then click on the Builder Button to the right ...

for now, just enter this line between the Sub procedure declaration and End Sub:

Expand|Select|Wrap|Line Numbers
  1. MsgBox "This is the form Before Update event"
once you have that much, we can ask you questions to help you construct the code you will need. You should see this message when you try to save the record after changing something by moving to the next record or closing the form or pressing Ctrl-S to save.
Nov 13 '15 #3

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

Similar topics

4
by: HelLind | last post by:
I have more than one File field forms named filename0, filename1, filename2, and so on..... And then I use javascript to read the value: document.formupload.filename0.value...
6
by: tm | last post by:
I am trying to reference a table entry (qtyonhand) populated from a recordset. There is only one record displayed on this table. When i try to compare this displayed field to an input field...
6
by: MLH | last post by:
"The following unexpected error occurred in Sub CopyMySQLbttn_Click, line #250, CBF on frmVehicleChooserform. 2465: "Can't find the field 'forms' referred to in your expression. You may have...
1
by: jos | last post by:
The image (gif) comes up as a red cross until the user is authenticated in a forms authentication application. Is there a way around this? <authentication mode ="Forms"> <forms...
9
by: Serguei.Goumeniouk | last post by:
Dear Experts, I have a very simple javascript codes with a following lines inside: ............................ var str = ""; .. . . . . . . . . . str = String(new Date()); // #1 str +=...
0
by: zeeshansohail | last post by:
I am developing a Database in ORACLE. I have Master/Detail relationship between two tables named as BILL (Master Table) and DETAIL_DETAIL (Detail Table). Master Table BILL contains product...
2
by: cptuser | last post by:
Hi, I'm a novice and I have the following code, but I can't get it to work. All i want to be able to do is a simple form validation for a single field, so that if the user enters a particular...
1
by: Chris | last post by:
I have put two snips of code I use in the body section of my page to validate and submit two forms. The first snip worked fine until I included the second...is the problem the fact variables...
1
by: Amanda Hartley | last post by:
Access Can't find the Field '!!' referred to in your expression. I am using the above format to display my form dates on my report in unbound text boxes with the control source then set to !!....
2
benchpolo
by: benchpolo | last post by:
Private Sub Frame219_AfterUpdate() If Me.Frame219.Value = 1 Then Me.wasextension2.Value = "Y" End Sub I have a table field in SQL called extension2, and it is linked via ODBC...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.