Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2011
    Posts
    1

    C program: read/write Access database

    Hi everyone,

    I want to write a test program in C, that will allow me to do the following:



    Read and write to an Access 2003 mdb file, named c:\test\db.mdb

    I simply want to write these 4 values into a table named "data" inside the file c:\test\db.mdb

    123A 10.50 5.75 20.2

    Afterwards, I want to read the whole table named "data" from that c:\test\db.mdb file (it always will only have 4 fields), and print its contents to the screen , that may look something like this:

    ID X Y Length
    100 6.60 2.15 10.5
    105b 15.75 5.00 18.6
    123A 10.50 5.75 20.2


    If you know how to do this, or have a similar C program that will solve this problem, please post. Thank you.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-11-2011, 02:51 AM
  2. Some Can Read; Some Can Write
    By cassidym in forum Security
    Replies: 3
    Last Post: 08-19-2010, 02:19 PM
  3. write a program to automate
    By g.ganiraju in forum Access
    Replies: 1
    Last Post: 07-23-2010, 11:13 PM
  4. ODBC table read to blank Access table write
    By dibblejon in forum Access
    Replies: 2
    Last Post: 03-10-2010, 08:39 AM
  5. Replies: 2
    Last Post: 10-19-2006, 04:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums