ADODB.Field error '800a0bcd'

后端 未结 2 1146
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 20:09

I\'m getting an error in my .asp file, and I don\'t know how to solve this (I don\'t know ASP, it\'s an old project of my client, other developer did this). The error what i

相关标签:
2条回答
  • 2020-12-11 20:43

    We received this error on a legacy Classic ASP application. It turned out a value they were copying from another system into the submission form was adding non-visible characters to the input field.

    0 讨论(0)
  • 2020-12-11 21:06

    Are you sure that you have records?

    in line 105 you are asumming that the is a record, what if not?

    why don't you add something like this:

       if rs.eof = false then
           xlink=rs("vi_link")
       end if
    

    also,

    in the sql line you have this:

    RS.Open "SELECT * from  visitas where vi_data = date() and vi_ip='" &  xip & "'",cn,3,3
    

    but I am not sure if date() should go like that, it should have '"& date() &"' or "& date() &" (not remember if date is considered string or numeric)

    it should be like this:

    RS.Open "SELECT * from  visitas where vi_data = '" & date() & "' and vi_ip='" &  xip & "'",cn,3,3
    
    0 讨论(0)
提交回复
热议问题