Unix Technical Forum

Linking tables to Access Front end

This is a discussion on Linking tables to Access Front end within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I have been given the task of converting an access database back end t an sql server back end ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:28 PM
Friel
 
Posts: n/a
Default Linking tables to Access Front end


I have been given the task of converting an access database back end t
an sql server back end and then linking these tables to the acces
front end.

Exporting the back end tables to SQL server was fine, however there i
a problem with the autonumber field on a table. This field was exporte
correctly, SQL server has this field as a unique identifier.
However when I link this table to the front end and open the table i
design view, it sees this field as a number field, not an autonumbe
field so when values are inserted from a form into the table, it doesn
generate a number for this field and therefore the insert receives a
error along the lines of 'cannot insert nulls into this field'

How can I link this table into the access front end so the front en
correctly recognizes this field as autonumber and performs the inser
correctly


-
Frie
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message635787.htm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:28 PM
User
 
Posts: n/a
Default Re: Linking tables to Access Front end


The SQL version of autonumber is IDENTITY not UNIQUE IDENTIFIER.


"Friel" <Friel.1h9b9k@mail.webservertalk.com> wrote in message
news:Friel.1h9b9k@mail.webservertalk.com...
>
> I have been given the task of converting an access database back end to
> an sql server back end and then linking these tables to the access
> front end.
>
> Exporting the back end tables to SQL server was fine, however there is
> a problem with the autonumber field on a table. This field was exported
> correctly, SQL server has this field as a unique identifier.
> However when I link this table to the front end and open the table in
> design view, it sees this field as a number field, not an autonumber
> field so when values are inserted from a form into the table, it doesnt
> generate a number for this field and therefore the insert receives an
> error along the lines of 'cannot insert nulls into this field'
>
> How can I link this table into the access front end so the front end
> correctly recognizes this field as autonumber and performs the insert
> correctly?
>
>
>
> --
> Friel
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message635787.html
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 08:28 PM
User
 
Posts: n/a
Default Re: Linking tables to Access Front end


The SQL version of autonumber is IDENTITY not UNIQUE IDENTIFIER.


"Friel" <Friel.1h9b9k@mail.webservertalk.com> wrote in message
news:Friel.1h9b9k@mail.webservertalk.com...
>
> I have been given the task of converting an access database back end to
> an sql server back end and then linking these tables to the access
> front end.
>
> Exporting the back end tables to SQL server was fine, however there is
> a problem with the autonumber field on a table. This field was exported
> correctly, SQL server has this field as a unique identifier.
> However when I link this table to the front end and open the table in
> design view, it sees this field as a number field, not an autonumber
> field so when values are inserted from a form into the table, it doesnt
> generate a number for this field and therefore the insert receives an
> error along the lines of 'cannot insert nulls into this field'
>
> How can I link this table into the access front end so the front end
> correctly recognizes this field as autonumber and performs the insert
> correctly?
>
>
>
> --
> Friel
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message635787.html
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com