jazminecat23
Programmer
Hi all - how do i reference the button and form location which opens a particular form?
I have a form NameDataEntry which can be opened from 3 different places on my database. Depending on where it's opened from, I want to change certain characteristics of the form, mainly it's caption and backcolor, to make it more clear to the enduser what kind of name they are entering. I have figured out two different approaches to this problem. First, I could put the code in each cmdbutton that opens the form. Second, and this seems smarter, would be to put all of the code in the OnOpen event of my NameDataEntry form, and reference the form from which it is opened. But I don't know how to reference each button. Can anyone point me in the right direction? Thanks!
I have a form NameDataEntry which can be opened from 3 different places on my database. Depending on where it's opened from, I want to change certain characteristics of the form, mainly it's caption and backcolor, to make it more clear to the enduser what kind of name they are entering. I have figured out two different approaches to this problem. First, I could put the code in each cmdbutton that opens the form. Second, and this seems smarter, would be to put all of the code in the OnOpen event of my NameDataEntry form, and reference the form from which it is opened. But I don't know how to reference each button. Can anyone point me in the right direction? Thanks!