Typemixerror in ... free translation

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. Translation Patch?
      There are any translation patch to the 3.0 version?
    2. 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...
    3. qtvr translation
      hello, anyone knows what's the script to "translate" a qtvr panorama whit the help of a button? thanks Pim, Holland
    4. 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...
    5. Translation with PERL?
      jmckinley@netbotz.com (Jon) wrote in news:43e4cdd3.0307141337.18259da7 @posting.google.com: If you had been using ResourceBundles backed by...
  3. #2

    Default Re: Typemixerror in ... free translation

    > set conn = server.createobject("ADODB.Connection")
    > ...
    > set connupdate = server.createobject("ADODB.Connection")
    Why do you create two connection objects?
    > 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 & "') "
    I don't think these are all strings? Dates need to be delimited by # for
    Access, and numeric columns should not have any delimiters.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]


    Aaron Bertrand - MVP Guest

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: Typemixerror in ... free translation

    > because i perform 2 operations and would get error Object missing
    > otherwise
    Maybe because you inadvertently closed the object after the first operation?
    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

  7. #6

    Default 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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139