Using ASP.NET to initialize MS access event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smith387
    New Member
    • Jun 2009
    • 1

    Using ASP.NET to initialize MS access event

    What I am attempting to do is use ASP.NET with C# to create a page that will use its page_load event to initialize a button event from an Access database. Currently I am running a form in Access with a button that will perform multiple functions to the tables inside of the database.

    I know it is possible to use ASP.NET to provide an OleDb connection to the database to run stored queries, but is there a way to run this button click event code? Thank you in advance.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Wow, your first sentence should have probably been three!

    Anyways, from what I gather, you have a Button in an Access Application.
    When a user is using the Access Application, this button runs a bunch of queries that does stuff.

    You want to fire that button event from your C# application.
    How were you planning on doing this? Your code can't be executing some other program's code because of many reasons (security is the first one that's coming to my mind).

    Instead of trying to fire a button event in an Access Application from your C# code, simply call the same queries that the Access Application is when the user clicks the button.

    Please take a look at this article about how to use a database in your program (part I) and how to use a database in your program (part II) for more information about how to accomplish this.

    Comment

    Working...