VB6 - Method or data member not found
Hello,
I'm trying to fix the code in an app which was written by someone who has now left.
The problem comes when I try to click onto a certain form, and I get the error :
==========================
Compile Error :
Method or data member not found.
==========================
It then breaks on the following line :
Code:
WebBrowser1.Navigate "http://xxx/yyy/login.asp?LoginName=" & Login & "&Password=" & Pass
Can anyone shed any light on why ?
I've checked the web, and the webbrowser1 object should have 'Navigate' as one of it's members, but when I type 'webbrowser1.' - the intellisense doesn't show this ?
Thanks,
Re: VB6 - Method or data member not found
Make sure you have a Webbrowser control on your form and that it's name is 'WebBrowser1' :thumb:
Re: VB6 - Method or data member not found
Cheers Lintz,
I have, and it is named that, but for some reason it won't get past this line.
Re: VB6 - Method or data member not found
can you upload the form or project and I'll have a look?
Re: VB6 - Method or data member not found
Are you sure that the control named WebBrowser1 is a web browser control? Look at the properties window and see what VB thinks it is.
Re: VB6 - Method or data member not found
I am also getting the same error message for below code:
Private Sub cmdNewRecord_Click(Index As Integer)
datIDU.Recordset.AddNew
cmdSaveRecord.Enabled = True
cmdMoveFirst.Enabled = False
cmdMoveLast.Enabled = False
cmdMoveNext.Enabled = False
cmdMovePrevious.Enabled = False
End Sub
can someone please help??
Re: VB6 - Method or data member not found
Welcome to the forums. It is not advisable to hijack another thread to ask your own question. In the future, start your own thread after your forum searching failed to find a resolution.
We don't know which line is causing the error. So, one or both of the following apply
1) You do not have dataIDU declared in your form & if you do, you don't have ADO/DAO referenced in your project
2) One or more of those cmdxxxxx buttons do not exist
Re: VB6 - Method or data member not found
Swap
Welcome to the Forums .. :wave:
That was an ancient thread you brought up.
While I commend you for searching first before posting,
your question seemingly has nothing to do with a
WebBrowser control.
I'd suggest that next time you simply start a new thread.
That said, on which line in your code does the error occur?
Spoo
Re: VB6 - Method or data member not found
thanks spoo,
i have created new thread:
http://www.vbforums.com/showthread.p...54#post4088854
plz visit it