
Yes, the ADO source is 'select * from myview where ...'.
Yes, it is updating tables not specified in the UniqueTable property.
Trying different providers:
SQL Native Client - form is not updatable.
SQL Server - error, class not registered.
MSDASQL - error, Data source name not found and no default driver specified.
The construct of the view can be easily queried from SQL Server, although I
do not see it in the trace.
Following is the trace when the form opens. Note, the extra selects are for
combo box rowsources.
SET NO_BROWSETABLE ON
go
SELECT vwPreappraisal.* FROM vwPreappraisal WHERE
((([vwPreappraisal].[ContactID])=6992) And (([vwPreappraisal].[ModeID])=11)
And (([vwPreappraisal].[BatID])=5783)) ORDER BY [RegionCode], [WineName],
[Designation], [Vintage], [Producer], [SortOrder]
go
set implicit_transactions off
go
SELECT "dbo"."tblMstWineNames"."WineNameID"
,"dbo"."tblMstWineNames"."WineName" ,"dbo"."tblMstWineNames"."RegionID"
,"dbo"."tblMstWineNames"."WineAppelID" ,"dbo"."tblMstRegions"."RegionCode"
FROM {oj "dbo"."tblMstWineNames" LEFT OUTER JOIN "dbo"."tblMstRegions" ON
("dbo"."tblMstWineNames"."RegionID" = "dbo"."tblMstRegions"."RegionID" ) }
ORDER BY "dbo"."tblMstWineNames"."WineName"
,"dbo"."tblMstRegions"."RegionCode"
go
SELECT "WineNameID" ,"WineName" ,"RegionID" ,"WineAppelID" FROM
go
SELECT "DesignationID" ,"Designation" FROM "dbo"."tblMstDesignations" WHERE
("DesignationID" > 0 ) ORDER BY "dbo"."tblMstDesignations"."Designation"
go
SELECT "dbo"."tblMstBottleSizes"."SizeID"
,"dbo"."tblMstBottleSizes"."BottleName"
,"dbo"."tblMstBottleSizes"."RegionId" ,"dbo"."tblMstRegions"."RegionCode"
FROM {oj "dbo"."tblMstBottleSizes" LEFT OUTER JOIN "dbo"."tblMstRegions" ON
("dbo"."tblMstBottleSizes"."RegionId" = "dbo"."tblMstRegions"."RegionID" ) }
ORDER BY "dbo"."tblMstBottleSizes"."BottleName"
,"dbo"."tblMstBottleSizes"."RegionId"
go
SELECT "SizeID" ,"BottleName" ,"RegionId" ,"SortOrder" ,"IsLargeFormat"
,"BottleCode" FROM "dbo"."tblMstBottleSizes"
go
SELECT "ProducerID" ,"Producer" FROM "dbo"."tblMstProducers" WHERE
("ProducerID" > 0 ) ORDER BY "dbo"."tblMstProducers"."Producer"
go
SELECT "VintageId" ,"Vintage" FROM "dbo"."tblMstVintages" ORDER BY
go
SELECT "VintageId" ,"Vintage" FROM "dbo"."tblMstVintages"
go
Following is trace on an update:
exec sp_executesql N'UPDATE "InsertTest"."dbo"."tblMstItems" SET
varchar(1),@P9 int',108,1251,0,0,0,1,113,'N',3242949
go
exec sp_executesql N'SELECT
FROM "InsertTest"."dbo"."tblWineHistory" WHERE "WHID"=@P1',N'@P1
int',3666809
go
exec sp_executesql N'SELECT "DesignationID" FROM
int',0
go
exec sp_executesql N'SELECT "ProducerID" FROM
go
exec sp_executesql N'SELECT "AppellationID" FROM
int',0
go
exec sp_executesql N'SELECT
FROM "InsertTest"."dbo"."tblWineLots" WHERE "WLID"=@P1',N'@P1 int',5245783
go
exec sp_executesql N'SELECT "RegionCode","RegionDescription","RegionID" FROM
go
exec sp_executesql N'SELECT "WineName","RegionID","WineNameID" FROM
go
exec sp_executesql N'SELECT "Vintage","VintageId" FROM
go
exec sp_executesql N'SELECT "BottleName","SortOrder","BottleCode","SizeID"
FROM "InsertTest"."dbo"."tblMstBottleSizes" WHERE "SizeID"=@P1',N'@P1 int',1
go
exec sp_executesql N'SELECT