Solved

how to prevent users from leaving a specific field empty in a form in access 2010

Posted on 2013-01-20
2
1,289 Views
Last Modified: 2013-01-20
hi

i have a Continuous Form in access 2010 that based on a query

this form have 2 fields
OrderDate
SupplierName

and i want to prevent users from to update this field if the supplierName is empty how can i do it (in the form with vba)
0
Comment
Question by:bill201
2 Comments
 
LVL 39

Assisted Solution

by:als315
als315 earned 250 total points
ID: 38798355
If you set Required property for this field in source table to Yes, you will not be able to add record with empty field
0
 
LVL 61

Accepted Solution

by:
mbizup earned 250 total points
ID: 38798384
In the form with vba..

Use the form before update event.

If me.suppliername & "" = "" then
     Cancel = true
     Msgbox "fill in supplier name"

End if
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now