Results 1 to 8 of 8
  1. #1
    Petefured is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2008
    Posts
    16

    After a field is changed another must be changed as well

    Dear All,



    I have a form with various fields.
    I would like that if I change one of the text fields (it does not matter to what I change it to, just simply change it) another field must also be changed, otherwise the record will not be updated

    So eg. if I change the Comment field, I would need to change the Date field as well, otherwise I cant move to the next record

    Many thanks in advance!

  2. #2
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    So eg. if I change the Comment field, I would need to change the Date field as well.
    Change it to what?

  3. #3
    Petefured is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2008
    Posts
    16
    It does not matter to what it is changed, anything can be written there, the point is that it gets changed

    Thank you!

  4. #4
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    Is this what you mean.

    (A) If the "txtThisField" is changed you want the txtMyDate to be updated with the current date or date & time automatically?

    or

    (B) Do you want a message box to appear asking the user the make the change to the date field?


    (C) I missed the point of the post?

    You state:

    anything can be written there, the point is that it gets changed
    You can't write "anything" in a date control.

  5. #5
    Petefured is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2008
    Posts
    16
    B) after TxtField is changed and user should not be able to proceed until DateField is filled in (with anything)

    Many thanks

  6. #6
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    B) after TxtField is changed and user should not be able to proceed until DateField is filled in (with anything)
    That is fine if the txtField is changed but what about when data is first entered,do you want the user to enter a date in the date field?

    As I said before access will not let you enter "anything" in a control formatted for date.

    I have attached a sample that require the date be entered EVERYTIME that data is entered or changed in the txtField.

    I think that you can take it from here.

  7. #7
    Petefured is offline Novice
    Windows XP Access 2000
    Join Date
    Oct 2008
    Posts
    16
    This is just what I needed!!

    Thank you very much for your help!!

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So Petefured, is it time to use the link in my sig?

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

Similar Threads

  1. Find out changed data
    By Papote in forum Programming
    Replies: 1
    Last Post: 04-27-2009, 08:19 PM
  2. Replies: 4
    Last Post: 04-01-2009, 11:48 AM
  3. Replies: 1
    Last Post: 02-26-2009, 11:31 AM
  4. Quick way to stuff field names into text field
    By kfinpgh in forum Programming
    Replies: 0
    Last Post: 01-04-2007, 01:13 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