Results 1 to 3 of 3
  1. #1
    srcacuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15

    Autofill text field using rowsource+date

    Hello,

    I'm trying to autofill a field on a form.

    The form has an existing text field called PROJ, using the row sources "ABCD", "EFGH", "IJKL".

    A user begins filling out the form and eventually selects the PROJ.

    There is another text field, which is actually alpha-numeric, called FORM_NUMBER. I want this to autofill based on thier PROJ selection, using this format:

    ABCDYYMMDDTTTT, or ABCD1111300915 for example, for today with the time displayed as military time.

    Any suggestions?



    Thanks in advance

  2. #2
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Quote Originally Posted by srcacuser View Post
    Hello,

    I'm trying to autofill a field on a form.

    The form has an existing text field called PROJ, using the row sources "ABCD", "EFGH", "IJKL".

    A user begins filling out the form and eventually selects the PROJ.

    There is another text field, which is actually alpha-numeric, called FORM_NUMBER. I want this to autofill based on thier PROJ selection, using this format:

    ABCDYYMMDDTTTT, or ABCD1111300915 for example, for today with the time displayed as military time.

    Any suggestions?

    Thanks in advance
    In the after update event for PROJ, put in the following code:

    Me.Form_Number = Me.PROJ & Format(Now,"yymmddhhnn")

  3. #3
    srcacuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15
    Toyman,
    You made my day. I thank you, sir.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-22-2011, 02:36 PM
  2. Replies: 2
    Last Post: 09-25-2011, 08:52 AM
  3. Autofill Text Box from Cascading Combobox
    By desibabu90 in forum Forms
    Replies: 14
    Last Post: 06-28-2011, 11:31 AM
  4. Replies: 1
    Last Post: 02-04-2011, 04:58 AM
  5. date calculation then autofill?
    By nktrygg in forum Access
    Replies: 6
    Last Post: 01-19-2010, 11:04 AM

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