Results 1 to 2 of 2
  1. #1
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104

    Copying date from one text field to another - Error 13

    Hi all,



    Really frustrated with this one.

    I want to copy the date from field [DateStart] and paste that date (minus one day) into [LeaseStart1]. I get Error Code 13 no matter what permutation I try...
    Format for both fields is Medium Date - I even copied [LeaseStart] and pasted the same field and renamed it [LeaseStart1] - still no resolution
    Here's my code for the On Change event (using the date picker to change the date):

    Code:
    Private Sub LeaseStart_Change()
            Me.LeaseStart1 = Me.LeaseStart - 1
            Me.LeaseEnd = DateAdd("m", Me.LeaseTerm1, Me.LeaseStart1)
            Me.KmAllowance.SetFocus
    End Sub
    Can anyone help me fix the error ?
    Thanks in anticipation

    Pete

  2. #2
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104
    Worked around it folks, took out the On Change element and made it After Update - for some reason it worked...
    happy Camper moves on...

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

Similar Threads

  1. Replies: 6
    Last Post: 06-26-2015, 08:55 PM
  2. Replies: 3
    Last Post: 06-10-2015, 10:12 AM
  3. Replies: 9
    Last Post: 04-18-2014, 08:51 PM
  4. Replies: 3
    Last Post: 09-11-2013, 09:49 AM
  5. Copying only part of data from a text field
    By davedejonge in forum Queries
    Replies: 1
    Last Post: 02-03-2010, 05:18 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