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  

A different autonumber question - single column table



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2004, 12:00 PM
Tim Ward
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

Table with just one column which is an autonumber column - how do I insert
records?

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


  #2  
Old April 26th, 2004, 05:34 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

"Tim Ward" wrote in
:


Table with just one column which is an autonumber column - how do I
insert records?

Like any other insert command:

INSERT INTO MyTable (MyANcolumn)
VALUES (1024)

but why would you want to..?

B Wishes


Tim F

  #3  
Old April 27th, 2004, 03:32 AM
TC
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table


"Tim Ferguson" wrote in message
...
"Tim Ward" wrote in
:


Table with just one column which is an autonumber column - how do I
insert records?

Like any other insert command:

INSERT INTO MyTable (MyANcolumn)
VALUES (1024)

but why would you want to..?


I think he means manually, from the UI. He has opened the table datasheet.
How does he add new records to it (manually)?!

TC


  #4  
Old April 27th, 2004, 05:44 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

"TC" wrote in :

but why would you want to..?


I think he means manually, from the UI. He has opened the table
datasheet. How does he add new records to it (manually)?!



Ummm.... why would he want to?

What about pressing tab whilst the focus is on the autonumber field of
the "new record" row...

Puzzled


Tim F

  #5  
Old April 28th, 2004, 05:28 AM
TC
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table


"Tim Ferguson" wrote in message
...
"TC" wrote in :

but why would you want to..?


I think he means manually, from the UI. He has opened the table
datasheet. How does he add new records to it (manually)?!



Ummm.... why would he want to?

What about pressing tab whilst the focus is on the autonumber field of
the "new record" row...


Oops, yep, I guess that would do it.

As for why - I fear that we shall never know!

Cheers,
TC


  #6  
Old April 28th, 2004, 11:08 AM
Tim Ward
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

"Tim Ferguson" wrote in message
...
"Tim Ward" wrote in
:


Table with just one column which is an autonumber column - how do I
insert records?

Like any other insert command:

INSERT INTO MyTable (MyANcolumn)
VALUES (1024)


Doesn't work, surely, doesn't that just put 1024 into the AutoNumber column
rather than generating an automatic value?

but why would you want to..?


Eh?? A table isn't much use if you can't insert records into it.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


  #7  
Old April 28th, 2004, 12:36 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

The only purpose of an AutoNumber Field is to provide uniqueness to each
Record in the Table. Thus, the Table with only the AutoNumber Field does
not have any useful information content.

Why would you want to create the Table without any meaningful info. content?

--
HTH
Van T. Dinh
MVP (Access)




"Tim Ward" wrote in message
...
"Tim Ferguson" wrote in message
...
"Tim Ward" wrote in
:


Table with just one column which is an autonumber column - how do I
insert records?

Like any other insert command:

INSERT INTO MyTable (MyANcolumn)
VALUES (1024)


Doesn't work, surely, doesn't that just put 1024 into the AutoNumber

column
rather than generating an automatic value?

but why would you want to..?


Eh?? A table isn't much use if you can't insert records into it.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk




  #8  
Old April 28th, 2004, 01:02 PM
Tim Ward
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

"Van T. Dinh" wrote in message
...
The only purpose of an AutoNumber Field is to provide uniqueness to each
Record in the Table. Thus, the Table with only the AutoNumber Field does
not have any useful information content.

Why would you want to create the Table without any meaningful info.

content?

Because the only attribute of this object is a multivalued attribute, so the
actual information is in a join table which refers back to this main table
via a foreign key.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


  #9  
Old April 28th, 2004, 01:14 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

So you have another Field in this Table which is a ForeignKey Field???

--
HTH
Van T. Dinh
MVP (Access)


"Tim Ward" wrote in message
...
"Van T. Dinh" wrote in message
...
The only purpose of an AutoNumber Field is to provide uniqueness to each
Record in the Table. Thus, the Table with only the AutoNumber Field

does
not have any useful information content.

Why would you want to create the Table without any meaningful info.

content?

Because the only attribute of this object is a multivalued attribute, so

the
actual information is in a join table which refers back to this main table
via a foreign key.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk




  #10  
Old April 28th, 2004, 02:04 PM
Tim Ward
external usenet poster
 
Posts: n/a
Default A different autonumber question - single column table

"Van T. Dinh" wrote in message
...
So you have another Field in this Table which is a ForeignKey Field???


No, I have another table which refers back to the autonumber field with a
foreign key.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


 




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 11:20 AM.


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