Results 1 to 9 of 9

Thread: VB6 - Method or data member not found

  1. #1

    Thread Starter
    Hyperactive Member Jonny1409's Avatar
    Join Date
    Mar 2005
    Posts
    308

    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,

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    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'

  3. #3

    Thread Starter
    Hyperactive Member Jonny1409's Avatar
    Join Date
    Mar 2005
    Posts
    308

    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.

  4. #4
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: VB6 - Method or data member not found

    can you upload the form or project and I'll have a look?

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  6. #6
    Junior Member swapnil.k's Avatar
    Join Date
    Nov 2011
    Location
    India
    Posts
    17

    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??

  7. #7
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  8. #8
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    Re: VB6 - Method or data member not found

    Swap

    Welcome to the Forums ..

    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

  9. #9
    Junior Member swapnil.k's Avatar
    Join Date
    Nov 2011
    Location
    India
    Posts
    17

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width