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!"