Solved

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

Posted on 2013-01-20
2
1,452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

752 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