Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2007

Tip: Looking for answers? Try searching our database.

linked tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
colmkav - 04 May 2007 10:45 GMT
Hi, I need to copy a linked table to a new table but the new table
should not have a link. ie
all the data and settings accept for the link to another db.

How can I do this?

Colm
Stefan Hoffmann - 04 May 2007 10:59 GMT
hi Colm,

> Hi, I need to copy a linked table to a new table but the new table
> should not have a link. ie
> all the data and settings accept for the link to another db.
Use a table creation query, e.g.

  SELECT * INTO newTable FROM linkedTable

mfG
--> stefan <--
colmkav - 04 May 2007 12:38 GMT
> hi Colm,
>
[quoted text clipped - 8 lines]
> mfG
> --> stefan <--

Hi, I dont see how that will work unless the newtable has already been
created with the same design as the old table will it?

Colm
Rick Brandt - 04 May 2007 12:44 GMT
>> hi Colm,
>>
[quoted text clipped - 11 lines]
> Hi, I dont see how that will work unless the newtable has already been
> created with the same design as the old table will it?

INSERT INTO requires an existing target table.

SELECT INTO creates its own target table.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

colmkav - 04 May 2007 14:54 GMT
Thx but although this copies all the data ok fine some of the
properties dont occure in the new table eg I have a control box as a
control for a lookup table and also check box fields that have been
replaced by boolean 1 or 0 values. Is there no way I can copy the
table and keep all the properties (apart from the link)?

> >> hi Colm,
>
[quoted text clipped - 22 lines]
>
> - Show quoted text -
Stefan Hoffmann - 04 May 2007 15:13 GMT
hi Colm,

> Thx but although this copies all the data ok fine some of the
> properties dont occure in the new table eg I have a control box as a
> control for a lookup table and also check box fields that have been
> replaced by boolean 1 or 0 values. Is there no way I can copy the
> table and keep all the properties (apart from the link)?
Commandment 2, http://www.mvps.org/access/tencommandments.htm

Try DoCmd.CopyObject.

mfG
--> stefan <--
colmkav - 04 May 2007 16:03 GMT
Thanks but this only works the reverse way ie I could copy a table
from the current db to another db but not the table from the other db
to the current db.

How about importing the table? Whats the vba code for that? I dont see
any obvious one in docmd.

Thx for the commandments - I should send this to the idiot that wrote
this code:-)

> hi Colm,
>
[quoted text clipped - 10 lines]
> mfG
> --> stefan <--
Stefan Hoffmann - 04 May 2007 16:15 GMT
hi Colm,

> Thanks but this only works the reverse way ie I could copy a table
> from the current db to another db but not the table from the other db
> to the current db.
Nope, if you don't specify a database you can copy it:

  DoCmd.CopyObject , "TEST", acTable, "CopyTable"

> Thx for the commandments - I should send this to the idiot that wrote
> this code:-)
Do this. Better late than never:)

mfG
--> stefan <--
colmkav - 04 May 2007 16:29 GMT
Tx but that wont work because its a linked table and I dont want the
linked table.

As I say is there an import table function?

Colm

> hi Colm,
>
[quoted text clipped - 13 lines]
> mfG
> --> stefan <--
Aaron Kempf - 05 May 2007 00:27 GMT
yeah, if you don't want to deal with linked table crap-- then move to Access
Data Projects-- and keep all your DATA and QUERIES where they belong (on a
secure DATABASE SERVER)

Seriously

File, New, Project (existing data)

> Tx but that wont work because its a linked table and I dont want the
> linked table.
[quoted text clipped - 20 lines]
> > mfG
> > --> stefan <--
Stefan Hoffmann - 07 May 2007 09:59 GMT
hi Colm,

> Tx but that wont work because its a linked table and I dont want the
> linked table.
>
> As I say is there an import table function?
Yes, the import wizards uses DoCmd.TransferDatabase.

mfG
--> stefan <--
colmkav - 04 May 2007 16:31 GMT
sorry but that wont work because it just copies the link and the whole
point is that I dont want a linked table

Is there an "import table" function I can use?

Colm

> hi Colm,
>
[quoted text clipped - 13 lines]
> mfG
> --> stefan <--
colmkav - 04 May 2007 16:32 GMT
sorry but that wont work because it just copies the link and the whole
point is that I dont want a linked table

Is there an "import table" function I can use?

Colm

> hi Colm,
>
[quoted text clipped - 13 lines]
> mfG
> --> stefan <--
colmkav - 04 May 2007 16:39 GMT
sorry but that wont work because it just copies the link and the whole
point is that I dont want a linked table

Is there an "import table" function I can use?

Colm
Aaron Kempf - 05 May 2007 00:26 GMT
linked tables have been depecrated

you should move to Access Data Projects

> Hi, I need to copy a linked table to a new table but the new table
> should not have a link. ie
[quoted text clipped - 3 lines]
>
> Colm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.