|
Subject:
|
Chapter6 - Beginning Visual Basic 6 Database Prog.
|
|
Posted By:
|
jdeaver
|
Post Date:
|
12/6/2003 11:15:21 AM
|
I have worked through the practical exercise and the program works as expected when executing from the VB Editor however after compiling I get: "Run-time error 5: Invalid procedure call or argument." I have isolated the statement to the Data1.Reposition subroutine and statement: "If (Text1(1).Visible) Then Text1(1).SetFocus." Further, I packaged the program and still received the same error.
Jimmie C. Deaver
|
|
Reply By:
|
Lalit_Pratihari
|
Reply Date:
|
9/29/2004 11:01:50 AM
|
Hi,
First of all "Run-time error 5: Invalid procedure call or argument" comes when you are calling a procedure which does not exists at all.
Secondly, if you try to set the focus on the text box in the array which has visible property = false it will also give you the error.
Check that out.
Thanks,
Lalit Life Means More...
|