Results 1 to 3 of 3
  1. #1
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22

    How to Covert Date field to string

    Hi,



    I have a field in a form called DateCreated and its a date and time field in the format mm/dd/yyyy

    how can i turn this into a string using VBA?

    Thanks

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    cstr([datefield])

    you can use the cstr function either in vba code or in queries/reports/forms

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Not clear on what you're trying to accomplish, but the Format() function returns a string.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need to use an update query on date string field
    By clawschieff in forum Queries
    Replies: 2
    Last Post: 01-28-2014, 02:07 PM
  2. covert special text to number
    By masoud_sedighy in forum Programming
    Replies: 1
    Last Post: 05-13-2013, 10:39 AM
  3. How to convert Date to String?
    By thebaul in forum Access
    Replies: 1
    Last Post: 08-01-2012, 05:51 AM
  4. turning a string into a date
    By imintrouble in forum Access
    Replies: 2
    Last Post: 09-30-2011, 02:25 PM
  5. Convert string to date
    By ~SwAmPdOnKeY~ in forum Queries
    Replies: 4
    Last Post: 09-11-2008, 07:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums