PC Review


Reply
Thread Tools Rate Thread

write permission for linked tables

 
 
=?Utf-8?B?cmFq?=
Guest
Posts: n/a
 
      2nd Aug 2007
I created odbc linked tables through code:

Dim tdf As TableDef
With CurrentDb
Set tdf = .CreateTableDef("LNDETAILS", dbAttachSavePWD, "LNDETAILS",
"ODBC;DSN=WAXSERVER;UID=WAXUSER;PWD=MAX99;DBQ=WAXSERVER.WORLD;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MTS=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;")
.TableDefs.Append tdf
.TableDefs.Refresh
End With

The code successfully creates the linked tables. But the resulting linked
table do not have write access. Please advise how to provide write access.
 
Reply With Quote
 
 
 
 
Baz
Guest
Posts: n/a
 
      2nd Aug 2007
That is surely a function of the database engine (whatever it is)?

"raj" <(E-Mail Removed)> wrote in message
news:E7C73F0E-38BF-467C-94BE-(E-Mail Removed)...
> I created odbc linked tables through code:
>
> Dim tdf As TableDef
> With CurrentDb
> Set tdf = .CreateTableDef("LNDETAILS", dbAttachSavePWD, "LNDETAILS",
>

"ODBC;DSN=WAXSERVER;UID=WAXUSER;PWD=MAX99;DBQ=WAXSERVER.WORLD;DBA=W;APA=T;EX
C=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MT
S=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;")
> .TableDefs.Append tdf
> .TableDefs.Refresh
> End With
>
> The code successfully creates the linked tables. But the resulting linked
> table do not have write access. Please advise how to provide write access.



 
Reply With Quote
 
=?Utf-8?B?cmFq?=
Guest
Posts: n/a
 
      2nd Aug 2007
When i create a linked tabled manually, i.e via menu File > Get External Data
> Linked Tables, after selecting the table i get a 'Select Unique Identifier'

dialog with all fields listed. If i select all the fields, then the resulting
linked table is editable.

"Baz" wrote:

> That is surely a function of the database engine (whatever it is)?
>
> "raj" <(E-Mail Removed)> wrote in message
> news:E7C73F0E-38BF-467C-94BE-(E-Mail Removed)...
> > I created odbc linked tables through code:
> >
> > Dim tdf As TableDef
> > With CurrentDb
> > Set tdf = .CreateTableDef("LNDETAILS", dbAttachSavePWD, "LNDETAILS",
> >

> "ODBC;DSN=WAXSERVER;UID=WAXUSER;PWD=MAX99;DBQ=WAXSERVER.WORLD;DBA=W;APA=T;EX
> C=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MT
> S=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;")
> > .TableDefs.Append tdf
> > .TableDefs.Refresh
> > End With
> >
> > The code successfully creates the linked tables. But the resulting linked
> > table do not have write access. Please advise how to provide write access.

>
>
>

 
Reply With Quote
 
Baz
Guest
Posts: n/a
 
      2nd Aug 2007
Right, so your question doesn't actually have anything to do with
permissions, it's really about identifying the unique field in the linked
table.

Look up CREATE INDEX in Access help (a search probably will not find it, you
may need to go to Table of Contents - Microsoft Jet SQL Reference - Data
Definition Language)

"raj" <(E-Mail Removed)> wrote in message
news6D0DD2C-CC33-4E9A-BED8-(E-Mail Removed)...
> When i create a linked tabled manually, i.e via menu File > Get External

Data
> > Linked Tables, after selecting the table i get a 'Select Unique

Identifier'
> dialog with all fields listed. If i select all the fields, then the

resulting
> linked table is editable.
>
> "Baz" wrote:
>
> > That is surely a function of the database engine (whatever it is)?
> >
> > "raj" <(E-Mail Removed)> wrote in message
> > news:E7C73F0E-38BF-467C-94BE-(E-Mail Removed)...
> > > I created odbc linked tables through code:
> > >
> > > Dim tdf As TableDef
> > > With CurrentDb
> > > Set tdf = .CreateTableDef("LNDETAILS", dbAttachSavePWD,

"LNDETAILS",
> > >

> >

"ODBC;DSN=WAXSERVER;UID=WAXUSER;PWD=MAX99;DBQ=WAXSERVER.WORLD;DBA=W;APA=T;EX
> >

C=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MT
> > S=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;")
> > > .TableDefs.Append tdf
> > > .TableDefs.Refresh
> > > End With
> > >
> > > The code successfully creates the linked tables. But the resulting

linked
> > > table do not have write access. Please advise how to provide write

access.
> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do my linked tables not allow me to write to them? =?Utf-8?B?RmFycmVsIEJ1Y2hpbnNreQ==?= Microsoft Access External Data 10 16th Jan 2008 11:08 AM
Appending Records from Linked Tables to the *Real* Linked Tables tbl Microsoft Access Queries 2 22nd Jun 2006 02:42 AM
Permission Question on External Linked Tables Ocsom Microsoft Access 4 3rd Nov 2004 07:44 PM
unable to search linked excel tables due to file permission Hcoms Microsoft Excel Programming 0 18th May 2004 11:27 PM
unable to search linked excel tables due to file permission Hcoms Microsoft Access 0 18th May 2004 07:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 PM.