Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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...;)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:37 PM.


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