Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    57
    it worked. thank you very much. i assume the phrase "vbNullString" is not necessary here. right?

  2. #17
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    57
    can you also advise me what if there are lots of textboxes, for example 10 texboxes. in this case shall we run the code from the after update of every single textbox?

  3. #18
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    If you want it to respond to all of them, it needs to run from all of them. As I mentioned originally, I'd create a function and call it from each of them. That way the code is only in one place.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    57
    well, a form can have too many textboxes and it can be very exhastive to make an afterupdate for every one of them.
    i am not a programmer but seems to me there should be a way that the button checks for something before getting activated.

  5. #20
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    Well, rather than toggle the enabled property of the button, you could simply put code behind the button to test if all the textboxes are filled out, and give the user a message box instead of going to the second form if not.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Dependent Value
    By Ramtrap in forum Access
    Replies: 1
    Last Post: 12-19-2016, 11:56 AM
  2. Dependent ComboBoxes
    By HansJ in forum Forms
    Replies: 3
    Last Post: 06-09-2016, 05:12 PM
  3. (Again) dependent fields,
    By jamal numan in forum Access
    Replies: 12
    Last Post: 10-25-2012, 07:17 AM
  4. Help with dependent values
    By ceejsing in forum Access
    Replies: 6
    Last Post: 08-05-2011, 06:36 AM
  5. Dependent Combo Box
    By tigers in forum Forms
    Replies: 1
    Last Post: 06-16-2009, 12:46 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