Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

MS Access in C++.NET

EmilieEmilie Member Posts: 3
Hi!

I'm trying to update my MS Access database but it doesn't seem to work...
in other languages you can use OleDbConnection->ExecuteNonQuery()
but there's no such in c++.NET

I'm able to read the database but not update it...

could someone help me out?

Comments

  • HackmanCHackmanC Member Posts: 441

    Because the OleDbConnection don't implements the ExecuteNonQuery() method in any language. (The libraries are almost the same on all languages).

    [color=Blue]OleDbCommand[/color].ExecuteNonQuery()
    http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbcommand.executenonquery(VS.80).aspx

    In fact you can't Execute a Connection, you can Execute a Command.

    ----
    : Hi!
    :
    : I'm trying to update my MS Access database but it doesn't seem to
    : work...
    : in other languages you can use OleDbConnection->ExecuteNonQuery()
    : but there's no such in c++.NET
    :
    : I'm able to read the database but not update it...
    :
    : could someone help me out?
    :

    [red]Good luck![/red]
    [blue]Hackman[/blue]
  • EmilieEmilie Member Posts: 3
    :
    : Because the OleDbConnection don't implements the ExecuteNonQuery()
    : method in any language. (The libraries are almost the same on all
    : languages).
    :
    : [color=Blue]OleDbCommand[/color].ExecuteNonQuery()
    : http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbcomma
    : nd.executenonquery(VS.80).aspx
    :
    : In fact you can't Execute a Connection, you can Execute a Command.
    :
    : ----
    : : Hi!
    : :
    : : I'm trying to update my MS Access database but it doesn't seem to
    : : work...
    : : in other languages you can use OleDbConnection->ExecuteNonQuery()
    : : but there's no such in c++.NET
    : :
    : : I'm able to read the database but not update it...
    : :
    : : could someone help me out?
    : :
    :
    : [red]Good luck![/red]
    : [blue]Hackman[/blue]

    oupppppppppssss.... lol thanks! wrong object ;)

Sign In or Register to comment.