Results 1 to 2 of 2
  1. #1
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287

    VBA to set a hidden field depending on criteria

    Hey guys,

    I have a very normal data entry form: name, address, phone, email. There is an hidden field for "Can we mail them?" If address and email is null, this value needs to be 2, otherwise it needs to be 1. I know how to write the code to do that. I just can't figure out which event of which control to put it on. I have tried it on the email and the address field, but I have to program for this so it works no matter how people decide to use it. Some people tab thru the fields, some click, some don't key in the normal order. Etc..



    Which event would you guys use?

  2. #2
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    Before Update of the form.... derp... Hadn't finished my coffee yet. Sorry guys!

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

Similar Threads

  1. Replies: 3
    Last Post: 10-26-2014, 06:35 PM
  2. Replies: 1
    Last Post: 09-04-2014, 10:13 AM
  3. Replies: 3
    Last Post: 07-25-2013, 05:19 PM
  4. Replies: 1
    Last Post: 02-20-2012, 01:02 PM
  5. Replies: 0
    Last Post: 01-18-2011, 07:09 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