Results 1 to 2 of 2

Thread: Using VB Data Environment

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Location
    Ireland
    Posts
    1

    Red face Using VB Data Environment

    Hi,

    I have set up an Access Database and am using it in conjunction with a VB application. I have already linked using the VB Data Environment in order to produce reports from the database however now i need to do add, edit and delete functions on the records(preferably using the DE) Does anyone know the syntax on how? Ive tried a SQL statement as follows...

    stSQL = "INSERT into DOSE_TABLE( DOSE_NUMBER,EARTAG_NUMBER,MEDICINE,WITHDRAWEL_PERIOD,FROM) VALUES ('11','2','3','4','5')"

    deFarMate.conDatabase ?X? stSQL

    ?X?-using the object type connection you would put execute in here but i cannot find the suitable word for a DE that wont raise an error. Am i wayyy off the mark?

    Please Help!!

  2. #2
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    this doesn't work? It should.
    deFarMate.conDatabase.Execute stSQL
    VB 6.0, Access, Sql server, Asp

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