If you want to create both the new record for B and C at the same time, this
is the multi-step feature of Access. This doesn't work reliably in ADP
unless you are using some sort of trigger. So do you have any trigger that
you would have forgot to copy over to SQL-2008?
--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site:
http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)
"Helena" <(E-Mail Removed)> wrote in message
news

B8CF2A3-60E6-4DE6-84E3-(E-Mail Removed)...
> Hi! We transferred our DB from SQL 2005 to SQL2008 by creating scripts in
> SQL
> Studio2008. After that we can't update correctly records in subforms(if
> this
> subform have two tables as datasource).
> For example:
> We have
> A ([ID] [int] IDENTITY(1,1) NOT NULL,[LASTNAME] [nvarchar](56) NULL)
> B ([ID] [int] IDENTITY(1,1) NOT NULL,[TITLE] [nvarchar](56) NULL)
> C(A_id [int] not null,B_id[int] not null)
>
> Form1 - datasource is table A
> subForm2 - datasource are tables B and C
> Table C is like linking table. We correctly transfered all of CONSTRAINT
> and
> REFERENCES. Tables A and B have relations with each other by the use of
> table
> C.
> But now we have very a strange problem with updating subForm2.
> We can't insert a correctly record in this subForm - fields [ID] from
> table
> B and therefore [B_id] don't have a correctly increment (though their
> properties let them to do it).
> Unfortunately, while we had SQL server 2005 and clients applications in
> Access 2007 we didn't have these problems - our DB was working correctly
> all
> the time.
> We'll thank you very much for any advices.
>