Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Free Databases support forum > Microsoft SQL server > MS SQL ODBC > Linking tables to Access Front end




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

Friel is offline     Linking tables to Access Front end  
Friel


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for Friel Click here to Send Friel a Private Message Find more posts by Friel Add Friel to your buddy list
 
12-14-04 12:20 PM

I have been given the task of converting an access database back end to an s
ql 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 pro
blem 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 o
f 'cannot insert nulls into this field'

How can I link this table into the access front end so the front end correct
ly recognizes this field as autonumber and performs the insert correctly?




[ Post a follow-up to this message ]



    Re: Linking tables to Access Front end  
User


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-14-04 11:39 PM


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
>







[ Post a follow-up to this message ]



    Re: Linking tables to Access Front end  
User


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-14-04 11:39 PM


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
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:13 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register