Click here to Skip to main content
15,903,854 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i have a query by which i want to put the validation.

I have a Database (Passdb) and in that there is a table name (chart) in that there is a feild (group) i want to put validation according to the characters in that feild if If
Group=A
then goto delhi;
If Group =b;
then goto goa ;
in this way i want a query please help.

Hi i want to select a sepfic charaters from a feild of the table
Posted
Comments
[no name] 10-Aug-12 7:42am    
please be specific.. Ur requirement is not clear..
Anurag Sarkar 10-Aug-12 7:48am    
I HAVE A TABLE EMPREG I WANT TO USE GROUP FEILD OF THAT TABLE IF GRP=A
THEN GOTO DELHI
IG GRP=B
THEN GO TO GOA
[no name] 10-Aug-12 7:52am    
How exactly does screaming make your vague description of your problem clearer?
Joan M 10-Aug-12 10:12am    
Wes, Wes, Wes... have you never been in that typical situation in which speaking slower and shouting helps to improve communication? :rolleyes: <= that was a joke, a bad one.
[no name] 10-Aug-12 10:15am    
Well I do know that if you speak slowly enough and loudly enough everyone understands <Insert language name here >... But I do not think that applies here :-)

1 solution

I would use a query with a WHERE field, take a look at this link which will explain you how to get it done: http://www.w3schools.com/sql/sql_where.asp[^]

Then with the resultset you can loop and decide what to do.

I'm not sure if that is what you need, but it's what I understood.

Good luck.
 
Share this answer
 
Comments
Anurag Sarkar 10-Aug-12 12:57pm    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900