Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page Programmers, can you help me?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 03-17-2004   #1 (permalink)
Linux Newbie
 
Join Date: Feb 2003
Location: Swansea (UK)
Posts: 221
Programmers, can you help me?

Wondering if you can help me with a Visual Basic database problem, this problem are *very* unusual. Not even the people at a visual basic forum know why and how to fix this

heres my problem

The Program (Download this first)

I am getting a debug error to two forms, these forms have code to change the record using the adodc control, this code is:
Code:
Private Sub adoAddress_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'Show record number
adoAddress.Caption = adoAddress.Recordset.AbsolutePosition & " of " & adoAddress.Recordset.RecordCount
End Sub
This bit is highlighted by the debugger

Private Sub adoAddress_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset

This error occurs on both forms in question, these forms are frmPhones and frmAddresses

Can you please have a look at this error so you can maybe help me? thx
danbo is offline   Reply With Quote
Old 03-17-2004   #2 (permalink)
Linux Engineer
 
big_k105's Avatar
 
Join Date: May 2003
Location: Fargo, ND
Posts: 901
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
i want to help but i cant look at the code cause i use vb5 at work and u must have wrote this in vb6 or maybe even .net. could you let use know what version of vb it is?
__________________
BIG K aka Kyle
Programming Forums
www.kylekonline.com
Please don\'t PM me for help-- ask in the forums instead!
big_k105 is offline   Reply With Quote
Old 03-17-2004   #3 (permalink)
Linux Newbie
 
Join Date: Feb 2003
Location: Swansea (UK)
Posts: 221
Quote:
Originally Posted by big_k105
i want to help but i cant look at the code cause i use vb5 at work and u must have wrote this in vb6 or maybe even .net. could you let use know what version of vb it is?
its vb6
danbo is offline   Reply With Quote
Old 03-17-2004   #4 (permalink)
Linux Engineer
 
big_k105's Avatar
 
Join Date: May 2003
Location: Fargo, ND
Posts: 901
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
what is the exact error that it is giving you?

edit: and im jst curious but what visual basic forums did you use.
i would think the guys at vbforums.com would beable to help you out they are a smart bunch over there
__________________
BIG K aka Kyle
Programming Forums
www.kylekonline.com
Please don\'t PM me for help-- ask in the forums instead!
big_k105 is offline   Reply With Quote
Old 03-17-2004   #5 (permalink)
Linux Newbie
 
Join Date: Feb 2003
Location: Swansea (UK)
Posts: 221
i used http://www.visualbasicforum.com

the error i get is:

'Procedure declaration does not match description of event or procedure having same name'

Note: there is no other procedure with the same name
danbo is offline   Reply With Quote
Old 03-17-2004   #6 (permalink)
Linux Engineer
 
big_k105's Avatar
 
Join Date: May 2003
Location: Fargo, ND
Posts: 901
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
well since i cant run the program in vb5 my recommendation is to post it up at http://www.vbforums.com and see if anyone there can help. and if not there check out
http://www.experts-exchange.com/Prog.../Visual_Basic/

and see what you get from those two sites. but i have always had good luck at vbforums.com so check there first. good luck and sorry i cant help maybe i will boot into windows to nite and see if i can look at it and run it at home
__________________
BIG K aka Kyle
Programming Forums
www.kylekonline.com
Please don\'t PM me for help-- ask in the forums instead!
big_k105 is offline   Reply With Quote
Old 03-21-2004   #7 (permalink)
Linux User
 
Join Date: Jan 2003
Location: Cardiff, Wales
Posts: 478
stuff

this error
Quote:
Procedure declaration does not match description of event or procedure having same name
means that the sub event you are using has the wrong parameters.
I'm just installing VB6 now to see whats happened. I'll post something in a few minutes.
__________________
No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.
kpzani is offline   Reply With Quote
Old 03-21-2004   #8 (permalink)
Linux User
 
Join Date: Jan 2003
Location: Cardiff, Wales
Posts: 478
ado bug

There is a bug in the msadodc.ocx file - you are using version 6.0.81.71 as am I. I tried updating the MDAC but that didn't do it. So I'm now downloading the VB service pack (58Mb). I'll let you know if this includes an updated OCX.
__________________
No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.
kpzani is offline   Reply With Quote
Old 03-21-2004   #9 (permalink)
Linux User
 
Join Date: Jan 2003
Location: Cardiff, Wales
Posts: 478
fixed!

Ok you need to download the vb service pack 4 from the microsoft site.

then change your code to this:
Code:
Private Sub adoAddress_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
    adoAddress.Caption = adoAddress.Recordset.AbsolutePosition & " of " & adoAddress.Recordset.RecordCount
End Sub
If you can't manage the 56Mb download then I can email you just the ocx file and you can copy it to c:\windows\system32\
and register it by hand. regsvr32 msadodc.ocx

up to you. kriszani@iscavision.com
__________________
No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.
kpzani is offline   Reply With Quote
Old 03-22-2004   #10 (permalink)
Linux Newbie
 
Join Date: Feb 2003
Location: Swansea (UK)
Posts: 221
thx mate, how did you find that out? i been trying to fix this problem for a while
danbo is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 01:47 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0