Thread: Writing to access databases?

  1. #1
    MetallicA adamg's Avatar
    Join Date
    May 2004
    Posts
    8

    Question Writing to access databases?

    Is it possible to write a C program that'd open a microsoft access database and allow you to add and delete records to selected fields?
    Is it complex to be able to do this or quite basic.

    Thank you

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    im not sure but i think the best way to do that is by using MSVC++ or even VB since access uses VB to control the databases anyway.

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Quote Originally Posted by adamg
    Is it possible to write a C program that'd open a microsoft access database and allow you to add and delete records to selected fields?
    Is it complex to be able to do this or quite basic.

    Thank you
    Of course it's possible, and it is a little complex but not terrible. Search MSDN.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  4. #4
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    http://www.wotsit.org

    fantastic site for all types of fileformats, bookmark it

    I've looked in to excel documents before, and their file format is a bit......different shall we say, but if you put enough time in to it, you should be able to get something working.

    There *might* be some APIs out there that you could use, but i don't know, you'll just have to look around
    Last edited by jverkoey; 05-15-2004 at 11:05 PM.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I'm sure Fordy has answered this many times before
    http://cboard.cprogramming.com/searc...searchid=18874
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70
    Here's something...
    http://www.coding-zone.co.uk/cpp/art...cessodbc.shtml
    ... about odbc datasources.

  7. #7
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Plain C database samples

    May need a little tweaking for compilers other than LCC-WIN32.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. accessing a database made in Access..
    By willc0de4food in forum Windows Programming
    Replies: 4
    Last Post: 10-10-2005, 07:40 PM
  2. FtpFileFind access violation with MS VC++ 6.0
    By earth_angel in forum C++ Programming
    Replies: 3
    Last Post: 09-22-2005, 07:02 PM
  3. What's best for mass data access?
    By FoodDude in forum C++ Programming
    Replies: 4
    Last Post: 09-22-2005, 07:44 AM
  4. Office access in C/C++ NOT VC++!! :)
    By skawky in forum C++ Programming
    Replies: 1
    Last Post: 05-26-2005, 01:43 PM
  5. ww hosting and SSH access
    By spoon_ in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 04-07-2005, 08:49 AM