X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0F4A2DA0BC; Tue, 4 Oct 2005 10:42:20 -0300 (ADT) 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 27470-07; Tue, 4 Oct 2005 13:42:10 +0000 (GMT) Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id DDDD1DA0C4; Tue, 4 Oct 2005 10:34:22 -0300 (ADT) Received: from oncpfxp3-out.onc.michelin.com (unverified [10.21.4.30]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.4) with ESMTP id ; Tue, 4 Oct 2005 09:34:11 -0400 Received: from ONCMH1.onc.michelin.com (ONCMH1.onc.michelin.com [156.65.124.40]) by oncpfxp3-out.onc.michelin.com (Postfix) with ESMTP id C08E91A4B6; Tue, 4 Oct 2005 09:34:22 -0400 (EDT) Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP; Tue, 4 Oct 2005 09:34:22 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id INU8D400.P2X; Tue, 4 Oct 2005 09:34:16 -0400 Received: from [10.43.12.183] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 4 Oct 2005 09:34:16 -0400 Message-Id: <434284D6.3040708@us.michelin.com> Date: Tue, 04 Oct 2005 09:34:14 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-2?Q?Zlatko_Mati=E6?= Cc: pgsql-odbc@postgresql.org, pg-interfaces@postgresql.org, pgsql-interfaces@postgresql.org, pgsql-general@postgresql.org Subject: Re: [ODBC] Unbound text box, Text > 255 characters, MSAccess/PostgreSQL References: <000101c5c8d0$4a2fb340$1f291dc3@zlatkovyfkpgz6> In-Reply-To: <000101c5c8d0$4a2fb340$1f291dc3@zlatkovyfkpgz6> Content-Type: multipart/mixed; boundary="------------010601090306000506050402" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 required=5 tests=[AWL=0.009] X-Spam-Level: X-Archive-Number: 200510/99 X-Sequence-Number: 84328 This is a multi-part message in MIME format. --------------010601090306000506050402 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit What version of Access? Confirm that Access is interpreting the target field as MEMO, (either look at the linked table in design mode, or use Tools->Analyze->Documenter). For the query, determine the "type" of the parameter - Query menu->Parameters. Be sure you are using type MEMO. By the way, 3271 is a Jet error -- Invalid property value. Good luck. Zlatko Matiæ wrote: > Hello. > I have the following problem with MS Access/PostgreSQL combination: > There is a form in Access that has an unbound text box, used for entering a commentary of a batch of records. > There is a DAO Append Query that has a parameter that is passed from the text box using parameter of DAO QueryDef object. > I adjusted B7 parameter (Text as LongVarchar) in connection string (ODBC driver) to 1, so that Access links PostgreSQL Text fields as Memo fields in Access. The intention was to be able to enter unlimited length commentary into the field. > But, although I can enter unlimited text by using bound text box in some other forms, in this particular form I can't use bound control, so I need to pass text from UNBOUND control to the linked table by using DAO or ADO code. It seems that DAO query can't accept Memo as parameter, but only text. If my text exceeds length of 255, I have an VBA error 3271. If text in unbound text box is shorter that 255 everything is OK. > > So, is there any way to pass text of length >255 from unbound text box to Memo field of linked PostgreSQL table, by using DAO or ADO ? > > Thanks in advance, > > Zlatko --------------010601090306000506050402 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------010601090306000506050402--