Results 1 to 4 of 4
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    Repeat fields from last record

    I have a form with many fields. For one of the fields i would like it to repeat last record but also have the option to leave it blank.
    Example:
    Ray Doe 01/01/2013
    Jane Doe
    Sandy Doe 01/01/2013

    I found this code on online
    Me.txtTransfer Date.DefaultValue = """" & Me.txtTransfer Date & """"

    It repeats the last record but when i try to delete the record, i get this error

    Compile Error:
    Syntax error



    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Embedded spaces can be a problem. Either eliminate them in your names or try:
    Me.[txtTransfer Date].DefaultValue = """" & Me.[txtTransfer Date] & """"

  3. #3
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Rural guy

    You were right the space was the problem.

    Thank you very much

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Glad we could help.

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

Similar Threads

  1. Do not repeat
    By tanyapeila in forum Reports
    Replies: 7
    Last Post: 04-10-2014, 12:55 PM
  2. Replies: 10
    Last Post: 03-05-2013, 03:10 PM
  3. Fields repeat in column filter
    By thepuppyprince in forum Access
    Replies: 2
    Last Post: 01-16-2013, 01:42 AM
  4. Replies: 6
    Last Post: 08-22-2012, 03:24 AM
  5. Replies: 30
    Last Post: 08-15-2012, 02:25 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