Insert Date headache

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Insert Date headache

    I'm having a darn time trying to accomplish a task that I thought was simple -
    maybe it is - I'm just new at it I guess. All I want to do is to have a
    customer insert a date into an Access 2000 DB. I'm getting an
    "[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
    Access Driver] Syntax error in INSERT INTO statement." This is what I have:

    INSERT INTO jwst (instrument, request_date, part_number)
    VALUES ('#instrument#', "#CreateODBCDate(form.request_date)#", '#part_number#')

    Can someone please lead me to the right path. Thanks.

    wtodd Guest

  2. Similar Questions and Discussions

    1. How to insert date into db?
      I've been fighting with this simple (?) issue all weekend long and have gotten nowhere. I want to have the current date and time inserted into the...
    2. ASP SQL Insert NULL Date Value
      Hello, I've been pulling my hair out trying to figure this out. Thank you in advance for taking the time to look at this. I'm trying to...
    3. Date Insert puzzle :: 05/23/76 becomes 12: 12:13
      I'm tearing out my hair here: ACCESS 2000: When I attempt to overwrite a date in my date field with a new user selected valid date eg: 05/23/99...
    4. [Headache] "INSERT INTO" error I can't work out.
      In article <230720031756451382%uce_from_usenet@chatomatic.net>, Peter <uce_from_usenet@chatomatic.net> wrote: Ignore the question about the...
    5. Insert date
      Leave the Control Source set to the field in the table that you want to store the date in. In the Form's BeforeUpdate event, set the value of this...
  3. #2

    Default Re: Insert Date headache

    loose the quotes...#CreateODBCDate(form.request_date)# is all you need
    HTH
    --
    Tim Carley
    [url]www.recfusion.com[/url]
    [email]info@NOSPAMINGrecfusion.com[/email]
    Mountain Lover Guest

  4. #3

    Default Re: Insert Date headache

    Get rid of the quotes around #CreateODBCDate(form.request_date)#
    mxstu Guest

  5. #4

    Default Re: Insert Date headache

    did you try using single quotes instead?
    "#CreateODBCDate(form.request_date)#",


    jorgepino Guest

  6. #5

    Default Re: Insert Date headache

    Thanks everyone - losing the quotes did it.
    wtodd 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