Getting Started with Access Lookup Wizard Fields

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

  1. #1

    Default Getting Started with Access Lookup Wizard Fields

    Hi There,
    I have an Access database with 2 tables.
    One Table is used to store nothing but Names.
    My goal is build a simple database to track information regarding assignments
    given to our interns.
    I have it working in Access and wish to convert it cold fusion.
    Most of my fields are simple text fields and check boxes - no problem there.
    Right now I am stuggling on how to display data in an access Lookup Wizard
    Field in an CFOUTPUT.
    Instead of displaying the name of the intern I want displayed, I am only
    seeing a number (I think It is the Primary Id of field of the record int the
    Names Table.
    How can I tell CFOUTPUT to display the text name of the inten instead of its
    primary key?
    Here is my simple Query:

    <cfquery name="Recordset1" datasource=#MM_Interns_dsn_DSN#
    username=#MM_Interns_dsn_USERNAME# password=#MM_Interns_dsn_PASSWORD#>
    SELECT * FROM intern_data
    </cfquery>
    <cfoutput query="Recordset1">
    #Recordset1.Intern#<br>
    </cfoutput>

    Here #Recordset1.Intern# is displaying a number ex. "2"
    I want it to display data, examle "Smith, John"

    Thanks!:confused;

    Mike_x27 Guest

  2. Similar Questions and Discussions

    1. How can I set the default font for fields in Forms Wizard?
      I know that I can right click on a form field, and set the format for future fields based on that field's appearance, but when I run the Forms Wizard...
    2. ASP with Access: Trouble with lookup columns.
      << The only problem now is one of these columns is is used as a URL parameter on the site and It's not bringing in the relevant info that...
    3. Lookup fields
      I have a field in the client database called userid, when i put a number in this field it checks the internet database for that number. If that...
    4. Finding lookup fields in MySQL
      I've got a lookup table for a lookup table and can't work out the SQL to do a search. Can anyone help? As an example, consider the following: ...
    5. Access 97 lookup-table problem
      Sounds as if you need a numerical key that is unique to each country, which would be the field relating back to the main table -- Kevin Hill...
  3. #2

    Default Re: Getting Started with Access Lookup Wizard Fields

    Use the column for the intern name from the intern_data table, whatever that
    is. If you want to get an idea of what your query is returning, replace your
    CFOUTPUT with a CFDUMP to temporarily see all of the columns and rows returned.

    <CFDUMP var=#Recordset1#>

    Phil

    paross1 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