Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
| Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 6th, 2003, 12:15 PM
Registered User
 
Join Date: Dec 2003
Location: Suffolk, Virginia, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter6 - Beginning Visual Basic 6 Database Prog.

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
  #2 (permalink)  
Old September 29th, 2004, 11:01 AM
Authorized User
 
Join Date: Sep 2004
Location: Delhi, Delhi, India.
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Lalit_Pratihari
Default

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...;)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning Visual Basic 6 database zach007 Wrox Book Feedback 1 January 24th, 2006 11:42 PM
Beginning Visual basic 6.0 DataBase visualizebasic Wrox Book Feedback 0 June 14th, 2005 03:41 AM
beginning visual basic 6 database programming gskarns1 VB Databases Basics 1 September 29th, 2004 10:46 AM
Beginning Visual Basic 6 Database Programming lizardnotebk All Other Wrox Books 1 December 16th, 2003 01:45 PM
Beginning Visual Basic 6 Database Programming mikeceee All Other Wrox Books 0 July 16th, 2003 09:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.