Ascentient
IS-IT--Management
- Nov 4, 2002
- 267
On my form I have 10 command buttons that delete the contents of the text boxes following them.
Each control is named delete1, delete2,...delete10.
In a Public function that is called from another control i verify some data and then if needed prompt the user to delete this "line". If they say "Yes" I want to call the onclick event of the appropiate delete button.
-Hierarchy-
Qty_AfterUpdate
-->Pub Fun CalcmatlineA
----->Call delete??_Click
I have tried the following code but I get the following error: Compile Error, Expected Sub, Function, or Property
I can issue delete1_click and it works fine, but I need to be able to use Lineno as it identifies the control to call.
Each control is named delete1, delete2,...delete10.
In a Public function that is called from another control i verify some data and then if needed prompt the user to delete this "line". If they say "Yes" I want to call the onclick event of the appropiate delete button.
-Hierarchy-
Qty_AfterUpdate
-->Pub Fun CalcmatlineA
----->Call delete??_Click
I have tried the following code but I get the following error: Compile Error, Expected Sub, Function, or Property
Code:
Dim strCallProcedure As String
strCallProcedure = "delete" & Lineno & "_Click"
strCallProcedure