Ask a Question related to ASP Database, Design and Development.
-
Bob the ASP Builder #1
Typemixerror in ... free translation
I use this databaseconnection
Dim SQLINSERT
Dim connupdate
Dim A
Dim I
Dim H
Dim J
Dim K
Dim L
Dim StrConnect
A = Request.Form("A")
K = Request.querystring("K")
K = K + 1
L = 0
I = FormatDateTime(date(),vbgeneraldate)
H = FormatDateTime(time(),vbgeneraldate)
set conn = server.createobject("ADODB.Connection")
strConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&
Server.MapPath("Min.mdb")
Conn.Open StrConnect
SQLINSERT="INSERT INTO Min ( A, K, L, I, H) "
SQLINSERT=SQLINSERT & "VALUES ("
SQLINSERT=SQLINSERT & "'" & A & "', "
SQLINSERT=SQLINSERT & "'" & K & "', "
SQLINSERT=SQLINSERT & "'" & L & "', "
SQLINSERT=SQLINSERT & "'" & I & "', "
SQLINSERT=SQLINSERT & "'" & H & "') "
set connupdate = server.createobject("ADODB.Connection")
connupdate.open StrConnect
connupdate.execute(SQLINSERT)'^^Rad 33
connupdate.close
conn.close
It returns this errormessage:
Typemixingerror in conditonsstatement.^^(Translated from Swedish)^^
/database/updat.asp, line 33
Ive tried to change the setting of field type in the Accesdatabase from
numeric to text and vice versa - but Im sort of stucked - What is it
that Im missing here - do you see it?
Bob the ASP Builder
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bob the ASP Builder Guest
-
Translation Patch?
There are any translation patch to the 3.0 version? -
Help for service for translation of web pages or where to download free code?
I want to make a service for translation of web pages and I need help about that. I want to make this service to read words for translation from... -
qtvr translation
hello, anyone knows what's the script to "translate" a qtvr panorama whit the help of a button? thanks Pim, Holland -
Translation
I use the Dutch version of Elements V2 for about half a year now. Today I noticed for the first time something funny in the filter menu. Obviously... -
Translation with PERL?
jmckinley@netbotz.com (Jon) wrote in news:43e4cdd3.0307141337.18259da7 @posting.google.com: If you had been using ResourceBundles backed by... -
Aaron Bertrand - MVP #2
Re: Typemixerror in ... free translation
> set conn = server.createobject("ADODB.Connection")
Why do you create two connection objects?> ...
> set connupdate = server.createobject("ADODB.Connection")
I don't think these are all strings? Dates need to be delimited by # for> SQLINSERT="INSERT INTO Min ( A, K, L, I, H) "
> SQLINSERT=SQLINSERT & "VALUES ("
> SQLINSERT=SQLINSERT & "'" & A & "', "
> SQLINSERT=SQLINSERT & "'" & K & "', "
> SQLINSERT=SQLINSERT & "'" & L & "', "
> SQLINSERT=SQLINSERT & "'" & I & "', "
> SQLINSERT=SQLINSERT & "'" & H & "') "
Access, and numeric columns should not have any delimiters.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand - MVP Guest
-
Bob Lehmann #3
Re: Typemixerror in ... free translation
Min is a reserved word so not suitable for a table name.
Bob Lehmann
"Bob the ASP Builder" <anonymous@devdex.com> wrote in message
news:eefah4y2DHA.2528@TK2MSFTNGP10.phx.gbl...>
> I use this databaseconnection
>
> Dim SQLINSERT
> Dim connupdate
> Dim A
> Dim I
> Dim H
> Dim J
> Dim K
> Dim L
> Dim StrConnect
>
> A = Request.Form("A")
> K = Request.querystring("K")
> K = K + 1
> L = 0
> I = FormatDateTime(date(),vbgeneraldate)
> H = FormatDateTime(time(),vbgeneraldate)
>
> set conn = server.createobject("ADODB.Connection")
> strConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&
> Server.MapPath("Min.mdb")
> Conn.Open StrConnect
>
> SQLINSERT="INSERT INTO Min ( A, K, L, I, H) "
> SQLINSERT=SQLINSERT & "VALUES ("
> SQLINSERT=SQLINSERT & "'" & A & "', "
> SQLINSERT=SQLINSERT & "'" & K & "', "
> SQLINSERT=SQLINSERT & "'" & L & "', "
> SQLINSERT=SQLINSERT & "'" & I & "', "
> SQLINSERT=SQLINSERT & "'" & H & "') "
>
> set connupdate = server.createobject("ADODB.Connection")
> connupdate.open StrConnect
> connupdate.execute(SQLINSERT)'^^Rad 33
> connupdate.close
> conn.close
>
> It returns this errormessage:
> Typemixingerror in conditonsstatement.^^(Translated from Swedish)^^
> /database/updat.asp, line 33
>
> Ive tried to change the setting of field type in the Accesdatabase from
> numeric to text and vice versa - but Im sort of stucked - What is it
> that Im missing here - do you see it?
>
>
> Bob the ASP Builder
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Bob Lehmann Guest
-
Bob the ASP Builder #4
Re: Typemixerror in ... free translation
because i perform 2 operations and would get error Object missing
otherwise
Bob the ASP Builder
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bob the ASP Builder Guest
-
Aaron Bertrand [MVP] #5
Re: Typemixerror in ... free translation
> because i perform 2 operations and would get error Object missing
Maybe because you inadvertently closed the object after the first operation?> otherwise
Much better strategy here:
set conn = createObject("ADODB.Connection")
conn.open "<connection string>"
conn.execute "operation1"
conn.execute "operation 2"
conn.close
set conn = nothing
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand [MVP] Guest
-
Bob the ASP Builder #6
Re: Typemixerror in ... free translation
Well - I dont actually use the word Min - but that is the swedish word
for Mine - and the actual problem eventually túrned out to be a faulty
constructed Querystring result from a different script - thanks for your
effort
Bob the ASP Builder
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bob the ASP Builder Guest
-
Bob the ASP Builder #7
Re: Typemixerror in ... free translation
You're absolutely right - Ive implemented that now - I have just copied
+pasted this bit without really thinking it through - it worked - yours
works better
THANK YOU
Bob the ASP Builder
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bob the ASP Builder Guest



Reply With Quote

