Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - ACCESS just added a number field. How to increase the numbers in the tour?
ACCESS just added a number field. How to increase the numbers in the tour?
You must set the field to an integer and then set its initial value to 0.

If it is a text type, then you should also set it to "0"

So in your program, RS ("Saturday Good") = RS ("Saturday Good")+1.

Rs ("Zong Liuliang") =rs ("Zong Liuliang")+1

This is wrong.

Change it to

Rs ("Saturday Good") =cint(rs ("Saturday Good")+1

Rs ("Zong Liuliang") =cint(rs ("Zong Liuliang")+1

In addition, the most important point is that the final answer you want is:! ! !

-

If rs.bof and rs.eof then

Response.write "< script & gtAlert ("No such record "! )""); location.href= " "../index . ASP " "; & lt/script >

Response. End

other

Rs ("Saturday Good") =rs ("Saturday Good")+1

Rs ("Zong Liuliang") =rs ("Zong Liuliang")+1

Rs. update

If ... it will be over.

-

This sentence is logically wrong. You should change rs.bof and rs.eof to

If rs.bof or rs.eof, then

Then this program is absolutely ok.