If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
2 lines of code in a form action
If I want to put two pieces of code under the same action do i just repeat it
or do i need to add a seperate sub or something. for example I have Private Sub Form_Current() operativebutton.Enabled = Not IsNull(operativecombo) End Sub and Private Sub Form_Current() sitebutton.Enabled = Not IsNull(AddressCombo) End Sub in VB they are automatically seperated by a single line, but will they both run. I ask because the 1st one was working fine, now ive added a second i get error messages Thanks -- Message posted via http://www.accessmonster.com |
#2
|
|||
|
|||
2 lines of code in a form action
Jsut place all code for the event in the proper sub, i.e.
Private Sub Form_Current() operativebutton.Enabled = Not IsNull(operativecombo) sitebutton.Enabled = Not IsNull(AddressCombo) End Sub -- There's ALWAYS more than one way to skin a cat! Answers/posts based on Access 2000 Message posted via http://www.accessmonster.com |
#3
|
|||
|
|||
2 lines of code in a form action
Thanks I know it sounded really simple, just wasnt 100% sure
missinglinq wrote: Jsut place all code for the event in the proper sub, i.e. Private Sub Form_Current() operativebutton.Enabled = Not IsNull(operativecombo) sitebutton.Enabled = Not IsNull(AddressCombo) End Sub -- Message posted via http://www.accessmonster.com |
Thread Tools | |
Display Modes | |
|
|