CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Québec (Canada)
    Posts
    210

    I try to use "AppendDeleteField" but I received this error -> Sub or Function not defined <-

    This is my code.. And When I execute this code I received the error "Sub or Function not defined" Why?

    Dim dbsDonnee As Database
    Dim tdfTable1 As TableDef
    'Dim fldLoop As Field

    Set dbsDonnee = OpenDatabase("C:\Test.mdb")
    Set tdfTable1 = dbsDonnee.TableDefs!Table1

    ' Add three new fields.
    AppendDeleteField tdfTable1, "APPEND", _
    "E-mail", dbText, 50
    AppendDeleteField tdfTable1, "APPEND", _
    "Http", dbText, 80
    AppendDeleteField tdfTable1, "APPEND", _
    "Quota", dbInteger, 5

    dbsDonnee.Close

    Thanks
    Redg


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: I try to use "AppendDeleteField" but I received this error -> Sub or Function not defined <

    1.First of all try to find the place where you get this error message
    2.Did you include all the references
    3.Change the line
    Dim dbsDonnee As Database
    to
    Dim dbsDonnee As DAO.Database

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured