| |
kanwar_lokesh
Posts: 1
Score: 0
Joined: 4/11/2003
From: Australia
Status: offline
|
HI! i need help here. what will be the syntax to access the document elements dynamically using a variable value? i have marked in the code below where i am getting an error. Dim TheForm, validation, i, totalLabs totalLabs = 5 Function frmLabs_onSubmit() Set TheForm = Document.frmLabs For i = 1 to totalLabs ---err on this line--->If IsNumeric (TheForm.lab &i.Value) Then validation = True Else Msgbox "Please enter a numerical lab number." validation = False TheForm.lab1.Focus Exit Function End If NEXT End Function kanwar
|
|