Re: Form and subform weirdness when linking to SQL Server 2005 vi
- From: jrsmoots <jrsmoots@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Jul 2009 11:15:01 -0700
Thanks for the quick response!
All the tables have:
1. A primary key: incrementing (integer) identity column
2. timestamp field
3. row GUID (this is for the replication)
Some additional information:
I'm using Access 2003. The file format is 2002/2003.
The SQL Server database is configured with Merge Replication (2 databases
are particpating). I get to wondering if the SQL Server triggers that get
added for merge replication are messing with things in Access. I haven't
added any triggers of my own.
I didn't notice these problems in Access when developing on a workstation
(connecting to SQL Server on one of our servers). However, when I started
developing running a remote desktop session on a Win Terminal Server, the
weirdness became very apparent. I wonder if Terminal Server is causing the
problem?
"Albert D. Kallal" wrote:
Several things case these problems:.
First make sure all of these tables have a primary key. MS access and a jet
back end works fine when you don't have a primary key in the child table,
but with sql server, the table will be read only, and you not be able to add
child records.
The second thing to make sure is that all of the tables on the SQL server
side have a time stamp field (access and the odbc driver use this time stamp
field to figure out if and when the records been updated, if you don't have
the time stamp field, then I find a sub forms often work very poorly if at
all.
If you do the above two things, then usually don't have to change anything
at all with your form + sub-forms to make them work. in other words with
zero modifications, simply using the link master child settings in the sub
form, the whole thing should work.
So just make sure each and every table has a primary key. As mentioned in
access those child tables in sub forms don't need a primary key and they
will work just fine.
However, when you move to SQL server make sure each and every table has a
primary key.
Each table also having a time stamp column really helps here also.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx
- References:
- Re: Form and subform weirdness when linking to SQL Server 2005 via OD
- From: Albert D. Kallal
- Re: Form and subform weirdness when linking to SQL Server 2005 via OD
- Prev by Date: " There was an error executing the command"
- Next by Date: wheel mouse event
- Previous by thread: Re: Form and subform weirdness when linking to SQL Server 2005 via OD
- Next by thread: Questions about conditional formatting
- Index(es):
Relevant Pages
|