Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

microsoft access datetime issues

  • 17-02-2006 1:56pm
    #1
    Registered Users, Registered Users 2 Posts: 742 ✭✭✭


    i have to make a delete sql statement with a datetime in the where clause

    my problem is when it goes into access to search for the record to delete it searches the american version of a date rather than the european one

    im confused by this because the datagrid is pulling the date from the database and im searching the database by the value on the datagrid

    ie it can find any record for the 2/1/2006 as it is in access as 1/2/2006

    even if i change the format in access to dd/mm/yyyy it still wont find it

    is there a locality setting for access i can change? or anyone have any other suggestions?

    thanks


Comments

  • Registered Users, Registered Users 2 Posts: 250 ✭✭ikoonman


    Yes - it sure is tricky with MS Access. Look at you computer's regional settings long date format (in control panel), if i remember correctly there is a correlation with that and the dates in Access.. It sure is annoying - the Americans use mm/dd/yy where we usually use dd/mm/yy

    Also, try using the format function in VB to get the date in the correct format before you compare. You can do this within the Access SQL query.


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭Loco


    prob solved.

    formated the datetime to us before it goes to the access db


Advertisement