473,434 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Unbound text box, text>255, MS Access/PostgreSQL

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
Nov 13 '05 #1
2 3857
On Mon, 3 Oct 2005 01:15:54 +0200, "Zlatko Matić" <zl***********@sb.t-com.hr>
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


The easiest way is to open a DAO recordset, and add a new record to it.
Nov 13 '05 #2
You were right!
Thanks,

Zlatko

"Steve Jorgensen" <no****@nospam.nospam> je napisao u poruci interesnoj
grupi:uo********************************@4ax.com.. .
On Mon, 3 Oct 2005 01:15:54 +0200, "Zlatko Matić"
<zl***********@sb.t-com.hr>
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


The easiest way is to open a DAO recordset, and add a new record to it.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: James | last post by:
I am currently working on a PHP based website that needs to be able to draw from Oracle, MS SQL Server, MySQL and given time and demand other RDBMS. I took a lot of time and care creating a...
2
by: Adrian Parker | last post by:
I'm reading/writing from Access using both EXECUTE() and Recordset methods. I get weird errors though. For example I have 5 text boxes bound to fields. I will change the data in a couple of the...
24
by: jason | last post by:
Hi Ray...a while ago you explained an elegant solution to enable me to CREATE and EDIT existing tables and queries inside my online access 2000 database.... could you provide refresher links on...
1
by: Shamet | last post by:
Dear: Com.database, My name is Shamet, I am working with large questionnaire, I need your help to solve this problem, how can I increase the field size in the text data type, I want more 255...
2
by: jvh | last post by:
I have a little problem. I'm making some macros in access. I have a dutch version 2003. I type !.caption="test" and access translates it into !.capition="test". Does anyone knows the...
2
by: Kevin | last post by:
I'm thinking of moving data from Excel to Access to get around Excel's 1024-character limit on text-wrapping, and just learned that unless you do something with VB, text field-type in Access 2003...
0
by: Plumer | last post by:
Good morning everyone, Using C# I create a bog-standard System.Data.DataTable which I then Add to a System.Data.Dataset. I need to import that structure into an Access .adp file so I have...
1
by: Curt Fluegel | last post by:
I seem to be having a problem base64 encoding characters above 127. I can encode a sentence like "The big bad dog" without problems, but if I try to encode something like 0xFF I get different...
0
by: mahesh123 | last post by:
Hi, How to save the value of CustomDocumentProperties a text using VBA, if the string is longer then 256 characters? Thanks & Regards ---------------------------- Mahesh
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.