D djossh Registered User. Local time Today, 19:04 Joined Oct 19, 2011 Messages 89 Sep 26, 2012 #1 Hi, how to write VBA code to sum "textbox1" to "textbox20" based on Criteia in "textboxA" .. I know I can use "IF" function but it will be very long formula since I'm going to add 20 textbox.. I'm new to VBA.. thanks..
Hi, how to write VBA code to sum "textbox1" to "textbox20" based on Criteia in "textboxA" .. I know I can use "IF" function but it will be very long formula since I'm going to add 20 textbox.. I'm new to VBA.. thanks..
Alansidman AWF VIP Local time Today, 10:04 Joined Jul 31, 2008 Messages 1,493 Sep 26, 2012 #2 Try using the Case Select instead. Look here. http://www.techonthenet.com/access/functions/advanced/case.php
Try using the Case Select instead. Look here. http://www.techonthenet.com/access/functions/advanced/case.php
D djossh Registered User. Local time Today, 19:04 Joined Oct 19, 2011 Messages 89 Sep 26, 2012 #3 Alansidman said: Try using the Case Select instead. Look here. http://www.techonthenet.com/access/functions/advanced/case.php Click to expand... That was really helpful, thanks.. I really appreciate it.
Alansidman said: Try using the Case Select instead. Look here. http://www.techonthenet.com/access/functions/advanced/case.php Click to expand... That was really helpful, thanks.. I really appreciate it.