Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 17th, 2003, 09:02 AM
brunnyogas brunnyogas is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Hungary
Posts: 3 brunnyogas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
access vs sql server

Dear All,

my problem is the following:
i have an access database. i imported it into sql server. after it i linked tables into the access. but now i can't use a subform, because it doesn't want to work*. i know which table is wrong. the original table and sql table are same. (key, default value...... etc.) but if i use original table (which doesn't want to work form sql server) then the subform works perfectly. i don't know what is different from the access and sql server table. i haven't got permission problem, because i'm owner.


* the subform has got a sql command and when it can't find datas then subform hasn't got an empty row but it should has got an empty row.

another interesting thing. when i use all tables from sql server, then i can change datas, but i can't add new record.
here is the error message: cannot add new record(s); primary key for table <tablename> not in recordset.

Thank You

Last edited by brunnyogas : December 17th, 2003 at 09:05 AM.

Reply With Quote
  #2  
Old December 18th, 2003, 11:12 AM
supersubra's Avatar
supersubra supersubra is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Coimbatore, India
Posts: 280 supersubra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 15 m 10 sec
Reputation Power: 6
Check whether you have created the primary key in sql tables from sql enterprise manager. When you export a table from access to sql server (particularly in sql 6.5 version) the primary keys info will not be loaded into sql tables. you have to manually set it thru sql enterprise manager. Access will deny addrecord option to linked tables without primary key. when no record is available for a subform normally it wont show any blank row.Apart from Access table properties SQL table fields has some additional datavalidation like zerolength or something like that. Just check it.

Reply With Quote
  #3  
Old December 22nd, 2003, 08:35 AM
brunnyogas brunnyogas is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Hungary
Posts: 3 brunnyogas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i've tried what you sad, but it doesn't work.
it is an idea:
when i want to save records in access, then access immediately create id before i fill up my records, but sql server create id after i fill up them.

what do you think? can it be my problem?

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > access vs sql server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT