Ask a Question related to ASP, Design and Development.
-
xool #1
Type mismatch?
Hi i'm getting a type mismatch error, anyone tell me why pls?
conn.Execute "DELETE FROM Bmemo WHERE (tDate <= '" & date() & "')"
tDate is a date field in an Access database....
Many thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
xool Guest
-
Type mismatch error
This query works fine on a live server using an MSSQL database: <cfquery name="qIndex" datasource="#appDSN#" username="shampoo"... -
Interface Type Mismatch
This works in Java, so it is not clear why Actionscript does not implement it the same way. If an instance of a class that implements an Interface... -
Type Mismatch
I'm at my wits end here. I am getting type mismatch error in a ASP page when I try to multiply decimals*integers. This shouldn't be this difficult.... -
Type mismatch in expression
Dear anyone, I used the wizard to make a form, but when I try to go from design view to form view an eooro message comes up "Type mismatch in... -
Type Mismatch again
Hi, One page passes a strIssueNo to another, so on the 2nd page: Dim IssueNo IssueNo = Request.Item("strIssueNo") This 2nd page is designed... -
Randy Rahbar #2
Re: Type mismatch?
> Hi i'm getting a type mismatch error, anyone tell me why pls?
You have to surround the date with pound signs when using Access.
Try this instead:
conn.Execute "DELETE FROM Bmemo WHERE (tDate <= #" & date() & "#)"
Randy Rahbar Guest
-
Aaron Bertrand - MVP #3
Re: Type mismatch?
Why do you need to pass in the date from ASP? Access knows the date.
conn.Execute "DELETE Bmemo WHERE tDate <= Date()"
As Randy pointed out, if you're passing the date from outside the database,
you need to delimit it correctly.
conn.Execute "DELETE Bmemo WHERE tDate <= #" & Date() & "#"
I might even go so far as to suggest putting the date in an ISO format, e.g.
yyyy-mm-dd, to avoid ambiguity.
"xool" <me@memail.net> wrote in message
news:eZbBupHeDHA.2228@TK2MSFTNGP12.phx.gbl...> Hi i'm getting a type mismatch error, anyone tell me why pls?
>
>
> conn.Execute "DELETE FROM Bmemo WHERE (tDate <= '" & date() & "')"
>
>
> tDate is a date field in an Access database....
>
> Many thanks
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
> Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
>
>
Aaron Bertrand - MVP Guest
-
xool #4
Re: Type mismatch?
Great that's it, many thanks Randy
"Randy Rahbar" <rvrahbarAThotmail.com> wrote in message
news:O4AI$vHeDHA.696@TK2MSFTNGP09.phx.gbl...>> > Hi i'm getting a type mismatch error, anyone tell me why pls?
> You have to surround the date with pound signs when using Access.
>
> Try this instead:
> conn.Execute "DELETE FROM Bmemo WHERE (tDate <= #" & date() & "#)"
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
xool Guest
-
Aaron Bertrand - MVP #5
Re: Type mismatch?
Not to take anything from Randy's answer, but if you use the method I
recommended, you don't have to worry about date formats / regional settings
messing up the interpretation of date() (e.g. if a US-based access database
is placed on a UK server; the internal comparison is much safer than
external).
"xool" <me@memail.net> wrote in message
news:O7wTH8HeDHA.2304@TK2MSFTNGP11.phx.gbl...> Great that's it, many thanks Randy
Aaron Bertrand - MVP Guest
-
xool #6
Re: Type mismatch?
Ok will do, many thanks Aaron
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:uyfW2EIeDHA.2408@TK2MSFTNGP09.phx.gbl...settings> Not to take anything from Randy's answer, but if you use the method I
> recommended, you don't have to worry about date formats / regionaldatabase> messing up the interpretation of date() (e.g. if a US-based access> is placed on a UK server; the internal comparison is much safer than
> external).
>
>
>
>
>
> "xool" <me@memail.net> wrote in message
> news:O7wTH8HeDHA.2304@TK2MSFTNGP11.phx.gbl...>> > Great that's it, many thanks Randy
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
xool Guest



Reply With Quote

