How do I get "#" round dates in an "Insert into " query

I am trying to use the "Insert Into" type "CFQUERY" and insert a date into a field.This date has been input by the user on a web form using the syntax "<input type="text" name="DateInTheatres"...>
The query is
<CFQuery datasource="blah">
Insert into Films(<other fields>,DateInTheatres)
values(<other fields>,#CreateODBCDate(Form.DateInTheatres)#)
</CFQuery>
The above code does not seem to work because the "#" are not automatically put to the left & right of the date so when the sql resolves you get 12/10/2009 (for example) no quotes, nothing.
How can I fix this?
many thanks
Paul 

Try something like this:
<cfquery name="someName" datasource="someDatasource">
INSERT INTO Films
(SomeField, DateInTheatres)
VALUES
<cfqueryparam cfsqltype="cf_sql_varchar" value="#FORM.SomeField#">,
<cfqueryparam cfsqltype="cf_sql_date" value="#FORM.DateInTheatres#">
</cfquery>
Ken Ford

Similar Messages

  • HT1212 my niece's device is locked fro 23 million minutes!!!! How can i get round without losing data as at 8 she hasnt backed up!

    my niece's device is locked for 23 million minutes!!!! How can i get round without losing data as at 8 she hasnt backed up!

    If you restore you will have to restore to latest Apple's software, that frankly *****. I did it and I completely regret. On iOS 6.1.5 NOTHING works.

  • Trying to change my region from uk to New Zealand but comes up with incomplete pass how can I get round this ?

    Trying to change my region from uk to New Zealand but comes up with incomplete pass how can I get round this ?

    Thanks for the Clarification...
    GlenieBoy wrote:
    ... method of payment is not valid in this iTunes Store as it's set to uk..?
    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • How do i get rounded corners on a table?

    How do I get rounded corners on a table in Robobhelp9 for WebHelp output?

    Hi there
    Personally, I'd be tempted to just use a background image to produce the rounded corners. Then overlay that with the cell data.
    Just thinking out loud... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • TS3988 My wife bought an iPad Air and synced contact from our PC (Outlook), now all our contacts in Outlook have gone and we have to go to iCloud to get them, and even then they are a bit jumbled. How do I get my data back onto my PC?

    My wife bought an iPad Air and synced contact from our PC (Outlook), now all our contacts in Outlook have gone and we have to go to iCloud to get them, and even then they are a bit jumbled. How do I get my data back onto my PC?

    If you can see the iCloud contacts in Outlook, you can copy them back to your PC by selecting all the contacts (click one, then press Control-A), then drag and drop the selected contacts to Contacts under My Contacts on the left sidebar of Outlook.
    If you want to copy your calendar back to Outlook, select your iCloud calendar on the left sidebar of Outlook, switch to the list view (select View from the ribbon, then click Change View>List), select your events (click on a single event, then press Control-A), then control drag and drop them to Calendar under My Calendars on the left sidebar.
    Then you can sign out of iCloud on the iCloud control panel and your local copies will still be there.  If you want to add your iCloud email account back to iCloud, you can do this with these settings: http://support.apple.com/kb/HT4864.

  • HT1766 i recently lost my iphone and had data erased,then i found it. how do i get my data back?

    i recently lost my iphone4 and erased all my data, then i found it... how do i get my data back

    Your data should be on your computer.

  • If someone has wiped my ipad and changed passwords on icloud how do i get my data back

    if someone has wiped my ipad and changed passwords on icloud how do i get my data back? please could someone help me out thanks

    How did they wipe it?  By using Find My iPad and performing a wipe?  If so, that means they have your icloud ID and password, not a good thing.
    You could try connecting it to iTunes and performing a restore from iCloud.  But if they changed password, then you are out of the loop.  How did they get your password in order to change it?

  • I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    Were the app in your iTunes library? If not the app data in the backup has no place to go. Redownload the apps in your iTunes libaray
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    and then restore from backup.
    iOS: How to back up and restore your content
    Otherwise, try restoring from backup again.
    If still problem that means the backup does not include the data.

  • How do i get my data back if i restored my ipod touch

    how do i get my data back if i restored my ipod touch

    The backup that iTunes makes does not include synced media like apps and music.
    Redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store         
    and then restore from the same backup again.

  • How do I get my data from Sync account after I reformat my computers without backup favourites?

    Hello,
    I formatted my computer without backup all of my favourites in Firefox. I have Firefox sync account set up before that between the 2 computers but both of them have formatted. Now, how do I get the data out from my Sync account? Did Firefox save my data on their server and how can I check that?
    Thanks,

    Also:
    *If you have regenerated your Sync key or reset your Sync password, you can not recover your previous data
    *IMPORTANT - write down your Sync key as instructed in the original set up of Sync
    *if you have another device (computer or mobile) paired to the computer where you are having a problem, you can either:
    *#pair the problem computer to that other device
    *#get the Sync key from that other device
    '''<u>Remember</u>''', Sync was never intended for backup. The reason for its existence is to sync-up 2 devices. To back up your Firefox profile, which you should do frequently, to another drive or a pin/thumb drive or other backup media, see:
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile
    *http://kb.mozillazine.org/Recovering_a_missing_profile

  • My battery died and then when i charged the phone it is asking me to connect to itunes and restore. if i restore how can i get my data back

    My iphone battery died and on charging the phone it asked me to connect to itunes and restore the phone.
    If i restore the phone how can i get my data back and how can i check when i last backed up my phone

    If you have been syncing regularly as the iphone is designed, then you can sync the data back.
    Regardless you will have to restore the iphone.

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • I've just downloaded itunes on a new computer, and I'm downloading music from the cloud, but it seems to stick on certain songs and won't download them at all, stopping at a certain point. How do I get round this?

    Hi all,
    I've just downloaded itunes onto a new computer, and I'm currently downloading previously owned music from the cloud. However, it keeps sticking on various songs - it will get part of the way through and just stop, this seems to happen to about 1 in 10 songs. How do I get round this?
    Also, once I've finished dowloading from the cloud, how do I get my library to display only the songs I've downloaded, and not all the other ones that I don't want anymore?
    Cheers, Alex

    On the new laptop, launch iTunes. From the menu bar click Store / Authorize This Computer.
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer

  • I'm trying to sign in to icloud on my laptop to access my itunes but it says my apple id is valid but wont open.  I don't have an apple phone, I have an android phone.  How can i get round this?

    I am trying to access some of my songs on itunes on my pc but it's says I need to install icloud.  I did this but it says I need to sync my phone but that is an android phone.  It says my apple id is valid but still won't let me sign in.  How can I get round this?

    Enchanted1 wrote:
    All this and I still don't have enough space on my startup disk, but that's another whole question!
    No, this should be the number one thing you are concerned about.
    Until you get this sorted, there is a good chance you may simply lose everything.
    Do you hav ean external drive?
    If so copy the entire /Music/iTunes/ folder to the external drive.
    Then you can delete /Music/iTunes/ empty the trash and recover this space.
    Do this then Apple menu > Software update.
    Restart the computer
    Then post back.

  • I am trying to restore my calendar from my Time Machine backup. I can get through the process, but at the end I get a message that Calendars cannot be amended as it is required by OS 10. There is no facility to authorise a change. How do I get round this

    I am trying to restore my Calendar from my Time Machine back up. I can get through the process but at the end I get a message that Calendars cannot be removed or amended as it is required by OS10, there does not appear to be any option to authorise the backup or change. How can I get round this roadblock?

    I am trying to restore my Calendar from my Time Machine back up. I can get through the process but at the end I get a message that Calendars cannot be removed or amended as it is required by OS10, there does not appear to be any option to authorise the backup or change. How can I get round this roadblock?

Maybe you are looking for

  • SSO regapp registration with multiple net names

    Hello! I succesfully configured my apex engine to work with SSO authentication. I used in regapp.sql l_listener_token := 'HTML_DB:myhostname.mydomanin.com:7777'; and now the home page link works fine: http://myhostname.mydomanin.com:7777/pls/htmldb/f

  • SAPUI5 Application is not working in EP 7.01

    Hi All, I have SAPUI5 application developed and hosted in SAP ABAP Web Application server ( GW Server), this app is already integrated with SAP Enterprise Portal 7.01 ( SP15), It is working fine without any issue in Chrome Browser. But NOT in IE11 fr

  • Syntax in script logic

    Hi Friends, I have input schedule in below format. Product   Rate/2011.INP  Packing/2011.INP QTY/2011.APR AMOUNT/2011.APR QTY/2011.MAY AMOUNT/2011.MAY PM         3                 3              3               27            4         36 PN        5 

  • Mass transfer of sales person accounts,contacts ,transactions to another

    Hello All in CRM2007, is it possible to transfer Acounts/Contacts/Leads and Opportunities from one Sales employee to another Sales employee and if YES, How it can be done for Mass tranfer Regards Kumar

  • Nokia Email Messaging

    Hello pple,am using nokia 5730,i want to set up a new account for  university email.Its on OTHER so I need to manually enter the settings.These settings work fine with Nokia inbuilt messenger.On Nokia Email Messaging,the setup works fine but to compl