J
John A. Prejean
This one has me stumped. I have a base form I am trying to wrap up, but I
have one problem. In two functions I am opening a "record detail" form. I
would like to keep the code in the base form and pass info to the form
telling it which from to actually open. Any ideas how to do this? Here is
an example of what I had in mind if the text isn't clear enough...
Base Form
Function EditRecord()
Dim frmRecord as New Form()
frmRecord.Filter = "ID = 2"
frmRecord.Show()
End Function
In the non inherited version of my form, I can easily declare the frmRecord
variable as the actual form needed to view the detail. But I want the
frmRecord to take on the attibutes of Form_Employee_Detail, or
Form_Invoice_Detail, or Form_Transaction_Detail, etc. I think you get the
idea.
Any help would be greatly appreciated! Thanks!
John A. Prejean
(e-mail address removed)
have one problem. In two functions I am opening a "record detail" form. I
would like to keep the code in the base form and pass info to the form
telling it which from to actually open. Any ideas how to do this? Here is
an example of what I had in mind if the text isn't clear enough...
Base Form
Function EditRecord()
Dim frmRecord as New Form()
frmRecord.Filter = "ID = 2"
frmRecord.Show()
End Function
In the non inherited version of my form, I can easily declare the frmRecord
variable as the actual form needed to view the detail. But I want the
frmRecord to take on the attibutes of Form_Employee_Detail, or
Form_Invoice_Detail, or Form_Transaction_Detail, etc. I think you get the
idea.
Any help would be greatly appreciated! Thanks!
John A. Prejean
(e-mail address removed)