Data Type Missmatch?????

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Data Type Missmatch?????

    I keep getting a data type missmatch error when testing the following SQL
    statement. I can't figure out what is wrong with it. All fields have
    matching data types.

    SELECT StateName FROM USStates WHERE StateID IN (SELECT StateID FROM
    RepStates WHERE RepID IN (SELECT RepID
    FROM SalesRep
    WHERE RepID = 'record1'))

    Thanks, Kory


    Kory Guest

  2. Similar Questions and Discussions

    1. Paths missmatch - Help please
      So let me explain the case: in MXI file I have this row: <file name="someFile.htm" destination="$dreamweaver/Configuration/Commands" /> When...
    2. Converting from data type varchar to data type money
      Hi all, Tearing my hair out trying to figure this out. If anyone can provide any help i would greatly appreciate it. When I try to do an insert...
    3. Converting data type varchar to data type money
      Hi all, Tearing my hair out trying to figure this out. If anyone can provide any help i would greatly appreciate it. When I try to do an insert...
    4. Type Missmatch error
      My problem is i have created a Com(in vb ) which assept a MSXML2.DOMDocument as parameter Public Sub InsBudgetVirement(xmlDocs As...
    5. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
  3. #2

    Default Re: Data Type Missmatch?????

    Kory

    Is RepID a numerice field?

    Brendan

    "Kory" <kory@c5designs.com> wrote in message
    news:d0n5tj$mp5$1@forums.macromedia.com...
    > I keep getting a data type missmatch error when testing the following SQL
    > statement. I can't figure out what is wrong with it. All fields have
    > matching data types.
    >
    > SELECT StateName FROM USStates WHERE StateID IN (SELECT StateID FROM
    > RepStates WHERE RepID IN (SELECT RepID
    > FROM SalesRep
    > WHERE RepID = 'record1'))
    >
    > Thanks, Kory
    >
    >

    Singularity.co.uk Guest

  4. #3

    Default Re: Data Type Missmatch?????

    Yes!

    "Singularity.co.uk" <Brendan.Collins@RemoveThisSingularity.co.uk> wrote in
    message news:d0n8co$quj$1@forums.macromedia.com...
    > Kory
    >
    > Is RepID a numerice field?
    >
    > Brendan
    >
    > "Kory" <kory@c5designs.com> wrote in message
    > news:d0n5tj$mp5$1@forums.macromedia.com...
    >> I keep getting a data type missmatch error when testing the following SQL
    >> statement. I can't figure out what is wrong with it. All fields have
    >> matching data types.
    >>
    >> SELECT StateName FROM USStates WHERE StateID IN (SELECT StateID FROM
    >> RepStates WHERE RepID IN (SELECT RepID
    >> FROM SalesRep
    >> WHERE RepID = 'record1'))
    >>
    >> Thanks, Kory
    >>
    >>
    >
    >

    Kory Guest

  5. #4

    Default Re: Data Type Missmatch?????

    Kory

    Then I take it that record1 is a parameter? Try removing the single quotes
    around record1 as follows:

    SELECT StateName
    FROM USStates
    WHERE StateID IN
    (SELECT StateID
    FROM RepStates
    WHERE RepID IN
    (SELECT RepID
    FROM SalesRep
    WHERE RepID = record1))

    Brendan

    "Kory" <kory@c5designs.com> wrote in message
    news:d0n8q0$rls$1@forums.macromedia.com...
    > Yes!
    >
    > "Singularity.co.uk" <Brendan.Collins@RemoveThisSingularity.co.uk> wrote in
    > message news:d0n8co$quj$1@forums.macromedia.com...
    > > Kory
    > >
    > > Is RepID a numerice field?
    > >
    > > Brendan
    > >
    > > "Kory" <kory@c5designs.com> wrote in message
    > > news:d0n5tj$mp5$1@forums.macromedia.com...
    > >> I keep getting a data type missmatch error when testing the following
    SQL
    > >> statement. I can't figure out what is wrong with it. All fields have
    > >> matching data types.
    > >>
    > >> SELECT StateName FROM USStates WHERE StateID IN (SELECT StateID FROM
    > >> RepStates WHERE RepID IN (SELECT RepID
    > >> FROM SalesRep
    > >> WHERE RepID = 'record1'))
    > >>
    > >> Thanks, Kory
    > >>
    > >>
    > >
    > >
    >
    >

    Singularity.co.uk Guest

  6. #5

    Default Re: Data Type Missmatch?????

    That did it!

    Maybe you can tell what is wrong with this one!
    I am trying to display all states that are not already associated with the
    repID. So I want to exclude states that are already associated with the
    repid

    SELECT * FROM USStates WHERE StateID <> (SELECT *
    FROM RepStates
    WHERE RepID = record1)
    ORDER BY StateName ASC


    "Singularity.co.uk" <Brendan.Collins@RemoveThisSingularity.co.uk> wrote in
    message news:d0na0l$gg$1@forums.macromedia.com...
    > Kory
    >
    > Then I take it that record1 is a parameter? Try removing the single quotes
    > around record1 as follows:
    >
    > SELECT StateName
    > FROM USStates
    > WHERE StateID IN
    > (SELECT StateID
    > FROM RepStates
    > WHERE RepID IN
    > (SELECT RepID
    > FROM SalesRep
    > WHERE RepID = record1))
    >
    > Brendan
    >
    > "Kory" <kory@c5designs.com> wrote in message
    > news:d0n8q0$rls$1@forums.macromedia.com...
    >> Yes!
    >>
    >> "Singularity.co.uk" <Brendan.Collins@RemoveThisSingularity.co.uk> wrote
    >> in
    >> message news:d0n8co$quj$1@forums.macromedia.com...
    >> > Kory
    >> >
    >> > Is RepID a numerice field?
    >> >
    >> > Brendan
    >> >
    >> > "Kory" <kory@c5designs.com> wrote in message
    >> > news:d0n5tj$mp5$1@forums.macromedia.com...
    >> >> I keep getting a data type missmatch error when testing the following
    > SQL
    >> >> statement. I can't figure out what is wrong with it. All fields have
    >> >> matching data types.
    >> >>
    >> >> SELECT StateName FROM USStates WHERE StateID IN (SELECT StateID FROM
    >> >> RepStates WHERE RepID IN (SELECT RepID
    >> >> FROM SalesRep
    >> >> WHERE RepID = 'record1'))
    >> >>
    >> >> Thanks, Kory
    >> >>
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

    Kory Guest

  7. #6

    Default Re: Data Type Missmatch?????

    Use NOT IN instead of IN

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts 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