X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 703043A23D0 for ; Tue, 9 Nov 2004 09:54:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45430-03 for ; Tue, 9 Nov 2004 09:54:48 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id AD5133A1D99 for ; Tue, 9 Nov 2004 09:54:50 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id iA99slJ7046818 for ; Tue, 9 Nov 2004 09:54:47 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id iA99mTdt045077 for pgsql-odbc@postgresql.org; Tue, 9 Nov 2004 09:48:29 GMT From: "Sim Zacks" X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Access ADO adopendynamic PG backend Date: Tue, 9 Nov 2004 11:46:45 +0200 Organization: Hub.Org Networking Services Lines: 29 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.2 tagged_above=0.0 required=5.0 tests=DNS_FROM_RFCI_DSN, PRIORITY_NO_NAME X-Spam-Level: ** X-Archive-Number: 200411/59 X-Sequence-Number: 4673 I have a postgresql backend with an access front end and I am trying to redefine the recordset of the form to use an ADO recordset. The problem is that the CursorType always changes to AdOpenStatic, even if I choose adOpenDynamic. If anyone has any thoughts, please let me know. The form works great for viewing, but I cannot update or insert any new records. Below is the code I am using: connectstr = "DSN=SAP_PG;uid=postgres" Set conn = New ADODB.Connection conn.Open (connectstr) rs.CursorLocation = adUseClient rs.Open "select ProductID,ProductName,ProductTypeID,StockTypeID from Products order by ProductName", conn, adOpenDynamic, adLockOptimistic Set Me.Recordset = rs Me.Requery The conn object contains the following: Provider=MSDASQL.1;Extended Properties="DSN=SAP_PG;DATABASE=sap;SERVER=10.1.1.76;PORT=5432;UID=username; PWD=password;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersi oning=1;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=4096;UnknownSizes= 0;MaxVarcharSize=4094;MaxLongVarcharSize=4094;Debug=0;CommLog=0;Optimizer=1; Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=0;UnknownsAsLongVarchar=0;BoolsAs Char=0;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1; UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBin ary=0;UseServerSidePrepare=0"