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

Validation Rule

33
Hi,

I am trying to set a simple validation rule so that when my form is being filled out it the fields cannot be blank. I am somewhat knew to writing expressions and stuff so any assistance woul dbe greatly appreciated.

Thank you in advance
Jul 24 '07 #1
5 1131
FishVal
2,653 Expert 2GB
Hi,

I am trying to set a simple validation rule so that when my form is being filled out it the fields cannot be blank. I am somewhat knew to writing expressions and stuff so any assistance woul dbe greatly appreciated.

Thank you in advance
Hi.

You can make it on table level setting a corresponding table field "Required" property to "Yes".
Jul 24 '07 #2
ggtw
33
Hi.

You can make it on table level setting a corresponding table field "Required" property to "Yes".

Hi, Thanks for the response. I have done that already but it never worked. my situation is that I have data already entered and I need it so that when others are filling out the form I created they cannot move on to the next field if it is blank. I changed the "Required" property to yes already with no other changes. Am I missing something or do I need to do anything else?

Thanks
Jul 24 '07 #3
FishVal
2,653 Expert 2GB
Hi, Thanks for the response. I have done that already but it never worked. my situation is that I have data already entered and I need it so that when others are filling out the form I created they cannot move on to the next field if it is blank. I changed the "Required" property to yes already with no other changes. Am I missing something or do I need to do anything else?

Thanks
Ok. The following code in Exit event handler for form control Text4 will avoid moving to another field as long as Text4 is empty. It will however allow to move focus to another form.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Text4_Exit(Cancel As Integer)
  2.     If IsNull(Me.Text4) Then Cancel = True
  3. End Sub
  4.  
Jul 24 '07 #4
ggtw
33
Thank you I got it to work. Thanks for your help.
Jul 24 '07 #5
FishVal
2,653 Expert 2GB
Thank you I got it to work. Thanks for your help.
Glad it was helpful.
Jul 24 '07 #6

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

Similar topics

2
by: Joey P | last post by:
Hi all, I am doing a project for university whereby i have to implement a simple database related to a frozen foods company. I am having some trouble though creating a validation rule for one...
4
by: ron | last post by:
I have a access based guest book. I want to create a validation rule to block certain words or parts of a srting. How do i do this? ie: this is a nice site. come visit my porn site at www.abc.zy...
7
by: sharsy | last post by:
Hi guys, I would like to setup a validation rule for a database in microsoft access that restricts data entry so that a certain field can only be filled in if another field has a specific answer...
1
by: MLH | last post by:
Anyone remember if A97 append query failure would ever report data breaking validation rule when such was not the case. I have an old SQL statement - several years old now. I've encountered a case...
18
by: ChipR | last post by:
I have a text box with a validation rule and validation text. When entering a new record, if I put in invalid text, the validation text is displayed in a message box, but after clicking OK, another...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.