Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. how to write string to MS access database through DAO?

how to write string to MS access database through DAO?

Scheduled Pinned Locked Moved Database
databasetutorialquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bloodwinner
    wrote on last edited by
    #1

    I know how to read string values from Access db, like: CString strFields[5]; COleVariant varstring for(field=0; field<5;field++) { recordset.GetFieldValue(field, varstring); strFields[field]=V_BSTRT(&varstring); } then the string value from db. goes into strFields But what if I know the strFields, and want write to update the db. Does anyone know the adverse procedure?

    L 1 Reply Last reply
    0
    • B bloodwinner

      I know how to read string values from Access db, like: CString strFields[5]; COleVariant varstring for(field=0; field<5;field++) { recordset.GetFieldValue(field, varstring); strFields[field]=V_BSTRT(&varstring); } then the string value from db. goes into strFields But what if I know the strFields, and want write to update the db. Does anyone know the adverse procedure?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Don't cross post and this subject is covered in several articles here on CodeProject. Do some work.

      led mike

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups