Output from Access not string value

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

  1. #1

    Default Output from Access not string value

    Hi,

    When I run a query the cfoutput on my page are numbers and not the
    string/value in my Access database. I used the lookup function in Access to
    select the values in other tables to insert into the current field. I think
    this may have something to do with it?

    I have not tried yet but I guess I could set variables based on what these
    numbers represent from the other tables in the database. I just started using
    CF today so Im not really sure but I hope there is a better way than all those
    querys!

    Cheers,

    Edward:confused;

    mated922 Guest

  2. Similar Questions and Discussions

    1. access CF output from remote servers
      :confused; I am building a scheduling application that runs on one server which holds a "community" database. Members of this community can add...
    2. User Control Output to a String
      Hello - Please help, I am having trouble copying the output of a User Control into a string. For example - assume I have defined the...
    3. execute PHP -> return output to string
      Hi I've got a problem and I hope someone can help me: I want a PHP script to call another PHP script, execute it and return its OUTPUT (not...
    4. "Access Denied" using public static Process Start(string, string);
      We are using Network Associates VirusScan to check files uploaded from a web page for viruses. The code below worked fine using .Net 1.1 on...
    5. Is there a size limit for a receive (output) string parameter?
      Hello, I created an ActiveX control that has a member function with two string parameters. The first parameter is basically an SQL statement to...
  3. #2

    Default Re: Output from Access not string value

    I have been racking my brains and I understand the problem a little better. I
    think?

    I am building a directory of schools. In the data base I have a main table
    with all the information and all of the reoccuring information comes from other
    tables.

    For example: I have a region table and each region has its own regionID as the
    primary key. Now the output that I get is that region ID.

    I feel like the problem is only a few key strokes away but I think I might
    have tried to jump in with too little experience.

    Cheers if you can help me out,

    Edward

    mated922 Guest

  4. #3

    Default Re: Output from Access not string value

    For example: I have a region table and each region has its own regionID as the
    primary key. Now the output that I get is that region ID.

    Isn't that what you would expect? You need to clarify the problem a little
    better, maybe with
    examples.

    OldCFer Guest

  5. #4

    Default Re: Output from Access not string value

    Edward, an Access lookup is, as you've discovered, a special animal. What it
    displays is not what's actually in your table, but a foreign key to the ID in
    the lookup table.

    If you're using the region table as a lookup entity for the main table, try a
    JOIN query, (DISCLAIMER: the syntax shown below is NOT Access-generated)

    SELECT Mytable.whateverfieldyouneed , Regions.Name
    FROM Mytable
    JOIN Regions on Regions.ID = Mytable.RegionID (or whatever the field is called)

    HTH,

    philh 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