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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

array data type in table?



 
 
Thread Tools Display Modes
  #1  
Old October 29th, 2008, 07:05 PM posted to microsoft.public.access
djw
external usenet poster
 
Posts: 5
Default array data type in table?

I am pretty new to Access/VBA and do not really know SQL. I was
wondering if it is possible to use an array data type in a table?

I saw something online using SQL that was along these lines (in SQL
For Dummies):
CREATE TABLE CUSTOMER ( CustID INTEGER PRIMARY KEY, Phone CHARACTER
VARYING (15) ARRAY [3]);

I can create a table and fields using VBA & SQL but I cannot seem to
get an Array to work.

Thanks,
David
  #2  
Old October 29th, 2008, 09:34 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default array data type in table?

On Wed, 29 Oct 2008 11:05:50 -0700 (PDT), djw
wrote:

I am pretty new to Access/VBA and do not really know SQL. I was
wondering if it is possible to use an array data type in a table?

I saw something online using SQL that was along these lines (in SQL
For Dummies):
CREATE TABLE CUSTOMER ( CustID INTEGER PRIMARY KEY, Phone CHARACTER
VARYING (15) ARRAY [3]);

I can create a table and fields using VBA & SQL but I cannot seem to
get an Array to work.

Thanks,
David


Access2007 (but not prior versions) allows an abomination called a MultiValue
Field. This code *might* be relevant to such a field, though I have not seen
code like it before; it would be interesting to know the context.

A multivalue field is actually implemented "under the covers" with a proper
one-to-many relationship to a second table; unfortunately that table isn't
exposed either in user view or programmatically, without a whole bunch of
rigamarole. Most serious developers would avoid ever using such a field.
--

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 05:46 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.