Re: Unbound text box, Text > 255 characters, MSAccess/PostgreSQL

Поиск
Список
Период
Сортировка
От Greg Campbell
Тема Re: Unbound text box, Text > 255 characters, MSAccess/PostgreSQL
Дата
Msg-id 434284D6.3040708@us.michelin.com
обсуждение исходный текст
Ответ на Unbound text box, Text > 255 characters, MSAccess/PostgreSQL  (Zlatko Matić <zlatko.matic1@sb.t-com.hr>)
Список pgsql-odbc
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
PostgreSQLText fields as Memo fields in Access. The intention was to be able to enter unlimited length commentary into
thefield. 
> But, although I can enter unlimited text by using bound text box in some other forms, in this particular form I can't
usebound control, so I need to pass text from  UNBOUND control to the linked table by using DAO or ADO code. It seems
thatDAO 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
usingDAO or ADO ? 
>
> Thanks in advance,
>
> Zlatko

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Zlatko Matić
Дата:
Сообщение: Unbound text box, Text > 255 characters, MSAccess/PostgreSQL
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: PATCH: Integrity constraint violation should set SQLSTATE to 23000