473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Copy and Linking Access Front End to SQL Back End

I'll try and keep this short and sweet.
MS-Access is my front end (FE) and SQL Server is my back end (BE).
I created an Access application and then migrated the tables to a SQL
Server.

Periodically, the application needs to create new tables based on a
specific set of fields. Instead of tediously going through all the
definitions and indexing processes, I created a tblTemplate table. This
exists in the SQL BE and is linked to the Access FE.

When I execute:

DoCmd.CopyObject , newTableName , acTable, "dbo_tblTemplate"

all I get is a copy of the link. Inserting data into the "newTableName"
actually drops the data into the dbo_tblTemplate table (not good).

Here's what I need to have happen:

1) Copy the SQL BE template table to a new table which will then exist
on the SQL BE.
2) Link the new table back to the Access FE.
3) Do everything with VBA code so it is transparent to the user and
involves no manual processes.

Thanks in advance to all of you gurus who can bail me out of this mess.

Feb 13 '06 #1
1 2509
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sound like a bad design. It should be that the DB design is set by the
DB designer & no tables are added by the users.

Anywho... You have to create the table in the SQL environment. If
you're using an .mdb app instead of an .adp app you can use a pass thru
query to create the table. Create the table using DDL. Of course the
user has to have table creation permission on the SQL Server.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQ/Dc7YechKqOuFEgEQJ7nwCgwJxxoWA2I+L3oc+aWpN9BCXJ3/sAoPSe
mY8ZmluzHWDCX3YnnOVIStxt
=ZPJG
-----END PGP SIGNATURE-----

Typehigh wrote:
I'll try and keep this short and sweet.
MS-Access is my front end (FE) and SQL Server is my back end (BE).
I created an Access application and then migrated the tables to a SQL
Server.

Periodically, the application needs to create new tables based on a
specific set of fields. Instead of tediously going through all the
definitions and indexing processes, I created a tblTemplate table. This
exists in the SQL BE and is linked to the Access FE.

When I execute:

DoCmd.CopyObject , newTableName , acTable, "dbo_tblTemplate"

all I get is a copy of the link. Inserting data into the "newTableName"
actually drops the data into the dbo_tblTemplate table (not good).

Here's what I need to have happen:

1) Copy the SQL BE template table to a new table which will then exist
on the SQL BE.
2) Link the new table back to the Access FE.
3) Do everything with VBA code so it is transparent to the user and
involves no manual processes.

Thanks in advance to all of you gurus who can bail me out of this mess.

Feb 13 '06 #2

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

Similar topics

2
by: Jeff Pritchard | last post by:
Some time ago I am sure I came across something that said this was possible, though it doesn't seem to work. A client wants to replace an Access back-end with SQL Server tables. We have tried...
14
by: diskoduro | last post by:
Hi!! Years ago I built a database to control the production of a little factory. The users wanted to work in a Windows Net workgroup so I created an mdb with all the tables and data an after...
6
by: news.dsl.pipex.com | last post by:
Hi I have a front/back end scenario for my access app. I need to allow user to connect the front end to one of two back ends at start time. Presumably this needs linking to the relevant back end...
3
by: patcho | last post by:
Hello, I have a problem that I was hoping to get some assistance with. I have built a split database (back end with all the tables and a password to protect the information & a front end to link...
2
by: Matthew Wells | last post by:
Good morning... I have an Access front end that uses SQL Server linked tables. SQL Server uses Windows authentication. I have one Windows group that all Access users are a member of. I added...
2
by: Mike MacSween | last post by:
My clients are replacing their file server. Their application is the standard FE on each workstation, BE on the server. The transition to the new server may or may not go smoothly. At the moment...
1
by: deiopajw | last post by:
I have a Back end database on a network drive. The copies of the front end are located on individual pc's (in their C drive). The problem arises when a laptop user naturally hooks up to the...
4
by: Jim Devenish | last post by:
I wish to copy a table on a SQL Server backend to a table on an Access (.mdb) front end in the simplest way. I have the following to get the recordset but am seeking something easier. Dim...
1
by: TMacD | last post by:
This is my first project linking an MS Access (2003) front end to a MySQL back end. I've created and populated several tables in the MySQL database. I can read/write all of them except one from my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.