It's no problem to access functions in a form if you make them public.. or is that properties lol! I seem to have around so much with forms that I lose track.. THinking about it you can call functions from properties so ....
what you won't be able to do is to directly respond to an event from many forms... that's one of the things which makes VB suck.. I've got modules with 99% of my forms and I wish I could use generic event servicers..
These items are from a table. Let's call it tblItems.
I am going to make another table called tblOrderedItems.
When the Y/N check box is checked, the entire line should go to tblOrderedItems and then updates it and then it goes to the next line. The next checked item should be on the next line. If the check box is unchecked, then that item is going to be taken out of the tblOrderedItems.
Again, I am a beginner to Access and I am just trying to learn how to do stuff.
Thanks to anybody that helps.
Feryl
"If you can't beat them, then have somebody else do it for you."
1st I assume a form has to be open for any code in there to be called.
2nd Regard the sub/function modifier (Default for Events is Privat Blabla, so this is really private!...)
Right now I design the Code-Behind the form like this:
...
Private Sub Form_Current()
updateDisplay
End Sub
...
Function updateDisplay()
' update stuff
End Function
...
This way I can call a display update from anywhere (as long as the form is open):
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.