Getting Certain Information

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Getting Certain Information

    Hi, I have a question that I'm hoping someone could help me with. I'm use
    coldfusion and microsoft access. I have a database and I'm trying to access
    only a certain piece of information from the database, for example, I want to
    get the names of the only the people that signed a form so in the database I
    have a column called signed and in microsoft access the data type is
    yes/no...so I tried selecting the names of only the people who signed the form
    and my code looks like this:


    <cfquery name="signedname" datasource="psharp">
    select name
    from pforms
    where signed = 'yes'


    unfortunately this code doesn't work, does anyone know what is wrong with it?
    I'm not sure if 'yes' is the correct term to use for something selected in
    microsoft access database.

    Any type of help will be much appreciated, thank you.

    WOLFcfm Guest

  2. Similar Questions and Discussions

    1. Information
      Dear Miss/Mrs./Mr. I intend to move to Australia and work there as an auditor or an accountant.So I'd like to be familiar with Australian accounting...
    2. RGB information
      Hi, everybody, Could somebody tell me how to get the RGB information of a selected color? I mean something like R 120 / G 75 / B 56. Thanks in...
    3. [PHP] pdf information..
      Sven, thanks for the info! "sven" <svenie@gmx.li> wrote in message news:<20030716101807.59042.qmail@pb1.pair.com>...
    4. Needs some information
      Dear Sir/Madam, I work as an IT professional in Jakarta, Indonesia. Until now, we use UNIX Operating system for our Server. we have an idea to...
    5. pdf information..
      Hello, I have been given a task to generate a business card program over the web. The option that i can think of it to make it easier is generate...
  3. #2

    Default Re: Getting Certain Information

    Use True or -1 in place of ' yes ', thus

    <cfquery name="signedname" datasource="psharp">
    select name
    from pforms
    where signed = True
    </cfquery>


    BKBK Guest

  4. #3

    Default Re: Getting Certain Information

    I tried all those before:
    yes, true, on, 1
    and they all didn't work but one thing I didn't try before which I noticed in
    your code is to leave out the single quotes, I just tried them with no quotes
    and they worked, thanks a lot for your help, I really appreciate it!

    WOLFcfm Guest

  5. #4

    Default Re: Getting Certain Information

    Right.


    BKBK 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