Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
Guest - Humberto -

Erro De Sintaxe Sql

Question

Guest - Humberto -

ok.... tenho uma página que o usuário escolhe o "dia" values de 1 a 31 , e o "mes" values de 1 a 12 ....

daí quero selecionar essa data q ele digitou no meu bd

botei assim:

set rs=conn.execute("select*from Boletim where data= "&mrdia&" / "&mrmes&" ")

o mrdia e mrmes são as variáveis que receberam o Request dos usuários....

fiz assim mas na hr de mostrar o registro na página aparece o seguinte erro:

--------------------------------

ADODB.Field error '80020009'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/surfma/ver_boletim_por_dia.asp, line 0

--------------------------------------------

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Guest Guest

cara.... MAd já confirmei.... to digitando datas q existem sim no Banco de Dados....

n sei o q tah acontencendo

tipo.... no bd tem o campo DATA.......(ex. 18/02)

daí nessa consulta pego o dia e mes através de SELECT .... e ponho o '/' pra formar a data..

tah td certinho

tem os registros no bd

e dar esse erro

alguma luz??

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  



  • Forum Statistics

    • Total Topics
      148131
    • Total Posts
      643434
×
×
  • Create New...