|
-
Jul 3rd, 2000, 07:27 AM
#1
Thread Starter
Addicted Member
Hello!
I have problem with DataEnvironment.
I use it in code (not in form objects) and I write it like that (suggestion from one of Forum's member):
With DataEnvironment1
.Command1 'Executes command Command1
.rsCommand1.MoveFirst
For I=1 to .rsCommand1.Recordcount
List1.AddItem .rsCommand1.Fields(1).Value
Next
End With
And then I allways get an error. It just says "Error occured". Can you help me with that. It's kind an annoying thing, because I can't use DataEnvironment.
Regards
Zvonko
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Jul 3rd, 2000, 08:39 AM
#2
Fanatic Member
Hi Zvonko
One of you problems is that you haven't got a rsCommand1.Movenext within your for statement.
When the error comes up what line does VB highlight.
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Jul 3rd, 2000, 10:51 AM
#3
Thread Starter
Addicted Member
Oh, yes, I forgot to tell.
VB highligtes line where I execute command (.Command1).
Do you know the answer?
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Jul 3rd, 2000, 10:55 AM
#4
Guru
you are not telling the command to EXECUTE
.Command1.Execute
-
Jul 3rd, 2000, 11:32 AM
#5
Thread Starter
Addicted Member
Thanks!
I'll try that right now!!!
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Jul 3rd, 2000, 01:05 PM
#6
Thread Starter
Addicted Member
It doesn't work. Nothing works.
Damn!
Does anyone have working sample with DataEnvironment?
Zvonko
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Jul 3rd, 2000, 08:01 PM
#7
Guru
doesn't work?
loop thru the errors collection to get a detailed description of the error
dim objErr as adodb.error
for each objErr in objConnection.Errors
msgbox objErr.description
next objerror
-
Jul 4th, 2000, 11:50 AM
#8
Guru
when it says ERRORS OCCURED, you should loop thru the errors collection as I described...did you do that?
-
Jul 5th, 2000, 04:52 AM
#9
Thread Starter
Addicted Member
I looped through errors collection and it just said "Errors occured", nothing else.
I can send you my DataEnvironment and you can try, because I ran out of ideas.
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Jul 5th, 2000, 11:46 PM
#10
Guru
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|