Home > front end >  In the asp and problem determination
In the asp and problem determination

Time:01-05

Set the Rs=server. CreateObject (" adodb. You ")
SQL="SELECT * FROM [the title] where ZDDM='" & amp; Id&" '
"Rs. The Open SQL, conn, 1, 1
EOF
the Do While Not Rs.If Rs (" ")="oh" and the Rs (" GXB ")="ah" Then
TXT=1
End the If
Rs. MoveNext
Loop

The above code oh and table content, if you can separate individual judgment, after add a and can't judge, don't know where the problem is, how should change to correctly judge the two must be set up, the great god guide me

CodePudding user response:

You this what science logic, Rs (" GXB ")="oh" Rs (" GXB ") is "oh", how is it possible at the same time is equal to "ah," unless "oh"="ah", "oh"="ah"? Is not the same as if you will never be able to set up the conditions.

Or If the Rs (" GXB ")="oh" or Rs (" GXB ")="ah" Then
Or If the Rs (" GXB ") & lt; & gt;" Oh "(" GXB") and Rs & lt; & gt;" Then!"

CodePudding user response:

reference, on the third floor of the 1st floor response:
you what science logic, Rs (" GXB ")="oh" Rs (" GXB ") is "oh", how is it possible at the same time is equal to "ah," unless "oh"="ah", "oh"="ah"? Is not the same as if you will never be able to set up the conditions.

Or If the Rs (" GXB ")="oh" or Rs (" GXB ")="ah" Then
Or If the Rs (" GXB ") & lt; & gt;" Oh "(" GXB") and Rs & lt; & gt;" Ah "Then

Eldest brother is there any way, I want two must have a in the output,
My title is this:
ZDDM GXB
1:
1 ha
1 oh
1 ah
2 you
2 I
2 he
Now is to find out ZDDM 1 information, judge must have inside and oh just output TXT=1

CodePudding user response:

A good calm will sit first!
Program is wrong, you describe demand and there is a problem,
ZDDM=1, GXB="oh,"="ah", a="ha"...
But not the="oh"="ah" again, when you describe only="oh" or="ah", Chinese first quasi!
Write in the program are: the and change or
  •  Tags:  
  • ASP
  • Related