Results 1 to 2 of 2

Thread: Create Field in Access DB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    UK
    Posts
    8

    Exclamation Create Field in Access DB

    I am currenty using:
    Code:
        Dim dbs As Database
        Dim f As Field
    
        Set dbs = OpenDatabase(App.Path & "\Database\SIS.mdb")
        Set f = dbs.TableDefs("USER").CreateField("Shipment_NextDate", dbDate, 10)
    
        dbs.TableDefs("USER").Fields.Append f
        dbs.Close
        Set dbs = Nothing

    Error = Type Mismatch


    Any ideas?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Set f = dbs.TableDefs("USER").CreateField("Shipment_NextDate", dbDate)

    if not.. what line does the error occur?
    -= a peet post =-

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