pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Campbell <greg.campbell@us.michelin.com>
To: Zlatko Matić <zlatko.matic1@sb.t-com.hr>
Cc: pgsql-odbc@postgresql.org
Cc: pg-interfaces@postgresql.org
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [ODBC] Unbound text box, Text > 255 characters, MSAccess/PostgreSQL
Date: Tue, 04 Oct 2005 09:34:14 -0400
Message-ID: <434284D6.3040708@us.michelin.com> (raw)
In-Reply-To: <000101c5c8d0$4a2fb340$1f291dc3@zlatkovyfkpgz6>
References: <000101c5c8d0$4a2fb340$1f291dc3@zlatkovyfkpgz6>

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

Attachments:

  [text/x-vcard] greg.campbell.vcf (239B, ../434284D6.3040708@us.michelin.com/2-greg.campbell.vcf)
  download | inline:
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

view thread (3+ messages)  latest in thread

Message-ID: <434284D6.3040708@us.michelin.com>
Permalink:  ../434284D6.3040708@us.michelin.com/
Also on:    postgresql.org/message-id/434284D6.3040708@us.michelin.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: greg.campbell@us.michelin.com, zlatko.matic1@sb.t-com.hr, pgsql-odbc@postgresql.org, pg-interfaces@postgresql.org, pgsql-general@postgresql.org
  Subject: Re: [ODBC] Unbound text box, Text > 255 characters, MSAccess/PostgreSQL
  In-Reply-To: <434284D6.3040708@us.michelin.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox