Message from discussion
Access
Thread-Topic: Access
thread-index: AcX7aGP7BQQDKcXhTfyrl8sgRG4+ZA==
X-WBNR-Posting-Host: 208.20.220.72
From: "=?Utf-8?B?Sm9obiBUaG9tcHNvbg==?=" <JohnThomp...@discussions.microsoft.com>
Subject: Access
Date: Wed, 7 Dec 2005 11:57:02 -0800
Lines: 21
Message-ID: <55CFDB04-FF04-471F-B152-056C46537B3F@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!msrtrans!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
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