473,748 Members | 8,773 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying access objects using .net

Bob
How do I program vb.net to copy a query or table from one MS Access database
to another?

I'd like to accomplish what import does when it copies Access objects
(primarily queries but some tables) from another database into the database
where the import action is selected---EXCEPT that I'd like to do this
externally with a VB.net program.
--
Thanks, Bob
Nov 22 '05 #1
2 2543
Hi Bob,

In order to copy a query or table from one MS access database to another, I
would request you to please go through the following site :
http://support.microsoft.com/default...b;en-us;298174

This site contains the code in order to accomplish the requirement and uses
the Data Access Objects (DAO) to import all objects from one microsoft
database into the current access database.

Hope tis helps.

Regards,
Mona [Grpaecity]

"Bob" <Bo*@discussion s.microsoft.com > wrote in message
news:2A******** *************** ***********@mic rosoft.com...
How do I program vb.net to copy a query or table from one MS Access database to another?

I'd like to accomplish what import does when it copies Access objects
(primarily queries but some tables) from another database into the database where the import action is selected---EXCEPT that I'd like to do this
externally with a VB.net program.
--
Thanks, Bob

Nov 22 '05 #2
Bob
Mona, thank you for your reply.

I have 11 users, each in a different location. I have a vb.net app which is
used by each user to modify his/her respective Access data base.

Each time a user installs the latest version/release of the app, he/she gets
an updated vb.net program, an updated xml report file, and an updated test
database.

The test database contains new queries that are used by new reports.

My problem is to get these new queries into the respective production
databases by having the user click on a button to do so.

So I'm relegated to doing this using vb.net and not by using Access .

Any suggestions?

--
Thanks, Bob
"Mona" wrote:
Hi Bob,

In order to copy a query or table from one MS access database to another, I
would request you to please go through the following site :
http://support.microsoft.com/default...b;en-us;298174

This site contains the code in order to accomplish the requirement and uses
the Data Access Objects (DAO) to import all objects from one microsoft
database into the current access database.

Hope tis helps.

Regards,
Mona [Grpaecity]

"Bob" <Bo*@discussion s.microsoft.com > wrote in message
news:2A******** *************** ***********@mic rosoft.com...
How do I program vb.net to copy a query or table from one MS Access

database
to another?

I'd like to accomplish what import does when it copies Access objects
(primarily queries but some tables) from another database into the

database
where the import action is selected---EXCEPT that I'd like to do this
externally with a VB.net program.
--
Thanks, Bob


Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3654
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore my settings if my profile became tampered with or corrupt. Is there any sample code available out there? -Robert
13
17510
by: franky.backeljauw | last post by:
Hello, following my question on "std::copy versus pointer copy versus member copy", I had some doubts on the function memcpy, as was used by tom_usenet in his reply. - Is this a c++ standard library function? That is, can I be sure that every c++ standard library has this function? Or is there a c++ alternative to it?
0
306
by: Bob | last post by:
How can I copy query objects from one MS Access database to another using VB.net. Both databases are on the same computer. As I create a report using vb.net, I create and reference queries in a test database to access the data for the vb.net report testing. For each report I create, a new release of my vb.net program is made available to users for upgrading purposes so the new report can be accessed. The revised test database is...
0
775
by: Bob | last post by:
How do I program vb.net to copy a query or table from one MS Access database to another? I'd like to accomplish what import does when it copies Access objects (primarily queries but some tables) from another database into the database where the import action is selected---EXCEPT that I'd like to do this externally with a VB.net program. -- Thanks, Bob
9
1535
by: Raposa Velha | last post by:
Any of you ever catch this bug: I made a form and decided to copy it. Then I modified the cloned form. Then I run it and access start saying "Error accessing file. Network connection may have been lost." Then I tryed to modify an event procedure and I realized that the correspondig code wasn't copyed along with the form! Deleting the form didn't solve the problem and a Compact and Repair Database did everything but reparing it! Actually I'm...
10
1695
by: Xavier Noria | last post by:
Given two structures of the same size but different type, does C99 guarantee that pointers to them can be casted one to each other, and that the order of the elements will be kind of respected? This code illustrates what I mean: int main(void) { struct foo { char c; }; struct bar { char c0; char c1; };
11
4465
by: truckaxle | last post by:
I am trying to pass a slice from a larger 2-dimensional array to a function that will work on a smaller region of the array space. The code below is a distillation of what I am trying to accomplish. // - - - - - - - - begin code - - - - - - - typedef int sm_t; typedef int bg_t; sm_t sm; bg_t bg;
6
2565
by: solex | last post by:
Hello, I am trying to use serialization to copy objects. The object in question "Institution" inherits from a parent object "Party" both are marked as <Serializable()>. Initially I can copy an empty Institution to another empty Institution, using the following routine: Private Sub CopyObject(ByRef FromObject As Object, ByRef ToObject As Object) Dim m As New MemoryStream Dim b As New BinaryFormatter
9
1734
by: Julian | last post by:
Hi, I have a vector defined like this: std::vector<Load*LoadList; which is populated with different objects of classes that are derived from 'Load'. I need to make a copy of this list during runtime. I imagine I'd have to loop through the list, make a copy of each of the objects in the vector using the copy constructor... but I don't know the class name during run time so that I can call the appropriate copy constructor.
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.