Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / April 2007



Tip: Looking for answers? Try searching our database.

Method or data member not found issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chudson - 28 Apr 2007 21:57 GMT
I have a puzzling issue.

I am receiving the compile error "Method or data member not found."
It's behaving erratically, and when you see the rest of my
explanation, you might see why.

In two different spots in the code, I'm comparing the field of a
record with a known value.

--------------------------------------------------------------------------
       dim rsLAssy as ADODB.Recordset
       Set rsLAssy = GetData(strSQL)

1        If myKnown > rsLAssy("Max") * 12 / myCompare Then GoTo
NextAssy
2        dTemp1 = rsLAssy("Max") * 12 / myKnown

.
.
.

3        If myInput > rsLAssy("Input") * 12 / myCompare Then GoTo
NextAssy
4        dTemp1 = rsLAssy("Input") * 12 / myInput
--------------------------------------------------------------------------

Variable names changed to protect the innocent.

Here's the odd part.  I'll get the compile error when the code looks
as it does above, and the rsLassy identifier from line 1 is
highlighted.  I couldn't see anything wrong with the identifier or the
data member name, so I commented line 1 and tried to proceed.  With
line 1 commented out, the program gives the compile error, but on line
3.  If I comment the line 3, there are no compile errors.

Can anyone see what I've done wrong?  I can't!

In the meantime, I'm going to try to change the way lines 1 and 3 are
written.

Thanks in advance,
Clint
Argusy - 29 Apr 2007 00:41 GMT
> I have a puzzling issue.
>
[quoted text clipped - 38 lines]
> Thanks in advance,
> Clint

The gurus will need more than that, Clint.
What is the composition of strSQL?
what is the source code for Getdata(strSQL)?
You may also need to show your database definition as well.
(You've only shown recordset definition)

If your compiler is highlighting Getdata(strSQL) then if you want to find out
for yourself, see if there's something missing in strSQL, and check the code in
Getdata(strSQL)

And you really need to redesign your code to remove those 'goto's

Argusy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.