Results 1 to 4 of 4
  1. #1
    Risto85 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    13

    On First Change Only

    Hello



    I've created a macro which fills date and time in specific fields. Now I've assigned this macro to Text Box, so when text box is filled then current date and time in fields next to it will be added. I've used event "On Change" for that. Problem is that I don't want this date and time to be changed later on when text box field will be changed. How to solve this? Is there some event feature "On First Change"?



    Risto

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    I dont see the need for macros to fill in fields when you can use DEFAULT VALUES.
    or
    use pick lists that can autofill.

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    You could modify the macro (or use VBA) to update those fields only if they are Null.

  4. #4
    Risto85 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    13
    ranman256 - timestamp is needed at the time when field will be edited, record could be open, but if nothing is inserted then I don't need timestamp.
    John_G - Yes, I was also thinking that solution would be to modifty macro to update only fields if they are null.


    Risto

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

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2014, 10:07 AM
  2. Change Change FormHeader Color
    By burrina in forum Forms
    Replies: 4
    Last Post: 12-19-2012, 08:18 PM
  3. Replies: 3
    Last Post: 07-20-2012, 11:41 AM
  4. On change
    By clarkej in forum Forms
    Replies: 3
    Last Post: 01-19-2011, 08:33 AM
  5. Change DOB to age
    By denl10 in forum Access
    Replies: 2
    Last Post: 02-04-2010, 02:18 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