Results 1 to 2 of 2
  1. #1
    Dalagrath is offline Only a Man
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Location
    Colorado
    Posts
    45

    Cool Time marches forward... or backward in my situation.

    Hello my lovely Access users!



    I have a tiny issue that can probably be fixed quickly by the community. It involves time values and form data entry.

    So, my end goal is to enter in military time into a form without a colon like so: 1525 (3:25pm) and have the form show this: "15:25" visually but enter the data into the table like this: 1525.

    Now, here is where it gets kind of tricky (for me). I want the input mask to not mess with my users having to "eff" with the colon when doing data entry in the form. Oh and did I mention that the table field value has to be a Time/Date?

    Please help me solve my dilemna

  2. #2
    161 is offline L33t N00b
    Windows 2K Access 2003
    Join Date
    Dec 2010
    Posts
    33
    I'm pretty new, but I think I can help on this one...

    AB:CD

    Left( [field] , 2) will give you "AB"
    Right( [field], 2) will give you "BC"

    In the control source to the field on the form, you will want it to read something like:

    Left( [field] , 2) & ":" & Right( [field], 2)

    Im not sure on the exact syntax of the & signs, but im pretty sure thats it, or really close!

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

Similar Threads

  1. Replies: 12
    Last Post: 02-22-2011, 03:39 PM
  2. Export / Import situation
    By svcghost in forum Import/Export Data
    Replies: 7
    Last Post: 10-14-2010, 04:23 PM
  3. Bringing forward a data in a form
    By cwwaicw311 in forum Forms
    Replies: 9
    Last Post: 02-24-2010, 07:58 PM
  4. Simple access situation
    By Xi0N in forum Access
    Replies: 1
    Last Post: 08-10-2009, 07:04 AM
  5. Combo Box - Paging Forward / Back
    By neilrpf in forum Forms
    Replies: 0
    Last Post: 03-01-2006, 05:21 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