Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
C# to Create Access Query
richard smith
Apr 16 2014 3:33 PM
1.2k
Reply
Can you use this syntax to open an access database - create a query - then save the query - then close the database?
[code]
Microsoft.Office.Interop.Access.Application accessApp = new Microsoft.Office.Interop.Access.Application();
accessApp.OpenCurrentDatabase(@"C:\\Test\\Test.mdb", false, "");
accessApp.DoCmd.RunSQL("Select * FROM tableData");
accessApp.DoCmd.Save(AcObjectType.acQuery, "All");
[/code]
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Hyper-V
Generic Dictionary consisting of string & linkedlist string