A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Linking tables



 
 
Thread Tools Display Modes
  #1  
Old June 25th, 2008, 10:46 PM posted to microsoft.public.access.tablesdbdesign
Warren
external usenet poster
 
Posts: 160
Default Linking tables

Which datatype is best to use for the fields used in linking tables? I know
Long integer is a good one. Will a text type of 10 characters work okay?
Thanks.
  #2  
Old June 26th, 2008, 02:59 AM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Linking tables

All field types are valid for linked tables. Long Integer and Text are
probably the most common field types in general (though 10 is too short for
many things.)

There seems to be an underlying question here? Perhaps you are trying to
link across a Wide Area Network (WAN) rather than a wired LAN? If so, this
might help:
http://www.members.shaw.ca/AlbertKallal/Wan/Wans.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Warren" wrote in message
...
Which datatype is best to use for the fields used in linking tables? I
know
Long integer is a good one. Will a text type of 10 characters work okay?
Thanks.


  #3  
Old June 26th, 2008, 09:10 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Linking tables

On Wed, 25 Jun 2008 14:46:01 -0700, Warren
wrote:

Which datatype is best to use for the fields used in linking tables? I know
Long integer is a good one. Will a text type of 10 characters work okay?
Thanks.


Any field type except Memo and OLE Object will work. Large text fields can
cause indexes to be larger than need be, and may impact performance; but I've
got several applications with 8-12 byte Text primary/foreign keys, and they
work just fine.

I'd probably avoid using Float, Double, or Date/TIme fields as keys, inasmuch
as they are subject to roundoff error. You might have a primary key value
3.1416 and a foreign key value that LOOKS like 3.1416 but is actually
3.14159999999997 and woulnd't link.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.