Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need suggestions on something

Status
Not open for further replies.

huBBLe

Programmer
May 15, 2001
50
SG
Hi,

i have a function which allows users to save what they have entered in all the controls like textfields, comboboxes, etc...

the problem now is that i have multiple forms (abt 10) but i find that to have the code for the save function in every form is very redundant. any idea how i can save the trouble of having redundant codes?

Thanks a million!
 
hubble,

You need to Create A Module And Define the function as a public function.

ie

Public MyFunction(Name As String, Age As Integer) As Boolean

MyCodings
...
...
...

End Function
or whatever.

This can then be called from and Form in the project solong as it has a unique name, which should come as part of good programming.

Thanx Dave Shaw!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top