urgent please
i have a form with 3 sub procedures,i need to call on each of the sub seperately when i click a button in another form

Recommended Answers

All 2 Replies

In the form being called
Make the Sub Public

Option Explicit
'Form 2 has 1 Text box
Public Sub ChClr()
    Text1.BackColor = vbRed
    Form2.Show
End Sub

In the calling form:

Private Sub Command1_Click()
    Form2.ChClr
    Form2.SecondSub
    Form2.ThirdSub
End Sub

Can you elaborate your Topic?
I mean with the sub form:?
and yes what that procedure in sub form?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.