Solved

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

Posted on 2006-06-09
5
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 125 total points
ID: 16869450
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
ID: 16874038
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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