Solved

How do I create a fully functional Access database application from within VB.NET?

Posted on 2006-06-09
5
286 Views
Last Modified: 2010-08-05
Dear Experts,

Can you help me?

I have written an VB.NET application which creates a brand new Access mdb file, creates several tables within it and then copies data from an Oracle database into these tables as means for "out of office" staff to obtain a snapshot of their key data.

Some of these staff are not confident with creating queries and forms within Access in order to selectively query and view that data once they have the file.

What I would like to be able to do for them is to programatically (from VB.NET) add a common set of Forms, Queries and reports to the mdb file as I create it. This would means they would receive a fully functional Access aplication every time a took a new snapshot and they would no longer need to worry how to view their data.

(1) Has any one ever done this?

(2) Does any one know if this is even possible? I suspect it is, even though it may be an unusual approach.

(3) Alternatively does anyone know of any articles on this subject which I might peruse?

Thanks in advance of a positive response.
0
Comment
Question by:donaldsam
5 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 125 total points
Comment Utility
what I would do, rather than have the code in your application create the forms and code in the MDB, would be to create a 'proto-type' MDB, with all of the tables, forms, and code already defined, but have the initial tables all EMPTY.  then, simply copy that 'proto-type' MDB to the necessary target directory, and have your program poplutate the tables from the ORACLE database.

AW
0
 
LVL 4

Assisted Solution

by:BradB3030
BradB3030 earned 125 total points
Comment Utility
1)  Yes, I have made pre-configured queries to an Access database, it is very possible
2)  I don't think there's anything TOO unusual about it, and it seems like you've already accomplished the hard part about it, so it's possible.  I do agree with Arthur_Wood that you could probably go directly to Oracle - use a couple date/time controls to select a start and end date in VB.NET and query between two dates to obtain a dataset...it would be great!
3)
Some help on connecting to an access database
http://www.homeandlearn.co.uk/NET/nets12p4.html  

Using a Datagrid to display data from a dataset (which is where your query would go)
http://www.vb-helper.com/howto_net_datagrid.html

Good luck!

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now