Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Access
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
John Thompson  
View profile   Translate to Translated (View Original)
 More options 7 Dec 2005, 19:57
Newsgroups: microsoft.public.dotnet.framework
From: "John Thompson" <JohnThomp...@discussions.microsoft.com>
Date: Wed, 7 Dec 2005 11:57:02 -0800
Local: Wed 7 Dec 2005 19:57
Subject: Access
OK,

I have an access addin.  On startup, I can open my database and enumerate
the tables in the database:

...
myApp = (Micorsoft.Office.Interop.Access.Application) application;
myApp.OpenCurrentDatabase("c:\\mydatabase.mdb");
foreach (Microsoft.Office.Interop.Access.AccessObject ao in
myApp.CurrentData.AllTables)
{
  System.Windows.Forms.MessageBox.Show(ao.Name.ToString());

}

My question is, once I have the particular table that I want, how do I
add/delete a record from it?  It seems like a pretty easy task, but I can't
find an example anywhere or documentation anywhere.

Thanks,
-- John


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Clement  
View profile   Translate to Translated (View Original)
 More options 8 Dec 2005, 14:03
Newsgroups: microsoft.public.dotnet.framework
From: Paul Clement <UseAdddressAtEndofMess...@swspectrum.com>
Date: Thu, 08 Dec 2005 08:03:19 -0600
Local: Thurs 8 Dec 2005 14:03
Subject: Re: Access

On Wed, 7 Dec 2005 11:57:02 -0800, "John Thompson" <JohnThomp...@discussions.microsoft.com> wrote:

¤ OK,
¤
¤ I have an access addin.  On startup, I can open my database and enumerate
¤ the tables in the database:
¤
¤ ...
¤ myApp = (Micorsoft.Office.Interop.Access.Application) application;
¤ myApp.OpenCurrentDatabase("c:\\mydatabase.mdb");
¤ foreach (Microsoft.Office.Interop.Access.AccessObject ao in
¤ myApp.CurrentData.AllTables)
¤ {
¤   System.Windows.Forms.MessageBox.Show(ao.Name.ToString());
¤ }
¤
¤ My question is, once I have the particular table that I want, how do I
¤ add/delete a record from it?  It seems like a pretty easy task, but I can't
¤ find an example anywhere or documentation anywhere.

Use ADO.NET with simple insert and delete SQL statements:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbco...

Paul
~~~~
Microsoft MVP (Visual Basic)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Thompson  
View profile   Translate to Translated (View Original)
 More options 8 Dec 2005, 16:12
Newsgroups: microsoft.public.dotnet.framework
From: "John Thompson" <JohnThomp...@discussions.microsoft.com>
Date: Thu, 8 Dec 2005 08:12:04 -0800
Local: Thurs 8 Dec 2005 16:12
Subject: Re: Access
Thanks Paul.  I suppose I should have spent a while more navigating through
MSDN.  Regardless, that's what I needed.

Thanks again,
-- John


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google