Re: Exception error
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 12/30/04
- Next message: Mark C.: "Re: Calling a batch file from IE using asp and vbscript"
- Previous message: Lakrom: "Re: Exception error"
- In reply to: Lakrom: "Re: Exception error"
- Next in thread: Lakrom: "Re: Exception error"
- Reply: Lakrom: "Re: Exception error"
- Reply: Lakrom: "Re: Exception error"
- Reply: Lakrom: "Re: Exception error"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Dec 2004 10:06:53 -0500
Please reply to and include a quote from the message to which you are
replying. You do not have to quote the whole message, in fact, it is best to
trim the parts of the message which are not relevant, as I will do below.
Lakrom wrote:
> Thanks but already I have proven that the registry does not come
> vacio, I have done it with Response.Write(dRs("fecha")) and
> Response.End() asi that I believe that the exception must be of
> another side.
>> Set dRs=dConn.Execute("select * from solicitud_canje_gte_temp where
>> rut='"&session("Rut")&"' ORDER BY month(fecha)")
>> do until dRs.eof
I did miss this line. OK, your recordset contains records.
>> * Do until month(dRs("Fecha"))<>month(VFech) (Line of error)
>> (0x80020009)
What happens if you simply do
Response.Write month(VFech)
? Are you certain VFech contains a valid date? If you get an error, try
explicitly converting it to a date using CDate:
Response.Write month(CDate(VFech))
Bob Barrows
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
- Next message: Mark C.: "Re: Calling a batch file from IE using asp and vbscript"
- Previous message: Lakrom: "Re: Exception error"
- In reply to: Lakrom: "Re: Exception error"
- Next in thread: Lakrom: "Re: Exception error"
- Reply: Lakrom: "Re: Exception error"
- Reply: Lakrom: "Re: Exception error"
- Reply: Lakrom: "Re: Exception error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|