473,503 Members | 12,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is It Possible To Write Sql In Data Validation Rule?

2 New Member
Hi,

I am new to SQL.

I am building a form to do data entry. I have some questions in the questionnaire like:
a). are you qualified?
b). if you are qualified, which level?

I want to restrict the data entry for question b only when answer in question a is "Yes".

I am not sure if I need to wrtie any SQL program or I can do that by clicking on "..." button in validation rule?

If it is possible to do, could anyone tell me how to do it?

Many thanks.
Fan
Feb 28 '07 #1
3 1677
vijaydiwakar
579 Contributor
Hi,

I am new to SQL.

I am building a form to do data entry. I have some questions in the questionnaire like:
a). are you qualified?
b). if you are qualified, which level?

I want to restrict the data entry for question b only when answer in question a is "Yes".

I am not sure if I need to wrtie any SQL program or I can do that by clicking on "..." button in validation rule?

If it is possible to do, could anyone tell me how to do it?

Many thanks.
Fan
u can apply validation before executing qry from frontend or u may use check option if ur using oracle
Feb 28 '07 #2
Fanyang
2 New Member
u can apply validation before executing qry from frontend or u may use check option if ur using oracle
Thank you so much, vijaydiwakar.

Sorry I don't quite understand your email. I am using ACCESS. Would you be able to tell me exactly what I need to do?
Feb 28 '07 #3
vijaydiwakar
579 Contributor
Thank you so much, vijaydiwakar.

Sorry I don't quite understand your email. I am using ACCESS. Would you be able to tell me exactly what I need to do?
u may first check if question is checked if yes then
create sql to execute
as
if question is checked then
dim ssql$
ssql="insert into <table>(<filedname>) values(<Field values>)"
conn.execute ssql
end if

it is not the pure code i'm giving u d blue print how to do so
Feb 28 '07 #4

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

Similar topics

4
2945
by: Mike | last post by:
Related to another topic I just posted, I wanted to discuss ways to optimize the validation of very large (>100MB) XML documents. First, I have no idea if something like this already exists; it...
2
2674
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
3473
by: fred | last post by:
I'm trying to validate data entered into a form field by using a Query. I've discovered that the validation rule is pretty useless if you need anything other than very basic validation. I've...
0
1793
by: Wayne Phipps | last post by:
Hi There, I want to be able to validate data entered by a user onto a form. Different fields will have different validation requirements. As an example, a text box may only allow numeric,...
4
2705
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...
4
4242
by: kids_pro | last post by:
What is the different between Business rule & data validation? How much impact does it give in OOP concept? Thanks, Kid
9
3095
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
15
12024
by: Mr.Tom.Willems | last post by:
Hello people, I am ussing an MS access database to enter and manage data from lab tests. until now i was the only one handeling the data so i had no need for a controle on how missing data was...
1
1744
by: DBlearner | last post by:
I'm surprised I couldnt find a question about this here so guess I better ask. I have a form with two date fields. and . Obviously, Enddate cannot predate Startdate field so I decided to do a...
0
7098
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
7296
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
7364
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...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
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
5604
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
4696
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...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.