Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Problem with NULL Text field but being stored as (Memo) in MYSQL database

Problem with NULL Text field but being stored as (Memo) in MYSQL database

2005-09-15       - By Shepherd Madziwa

 Back
Reply:     1     2     3  

Dear Sir/Madam;

I downloaded a MYSQL 4.1.14 database, created a table with fields of Char,
Varchar, Text, Date and Double as data types. I developed a small VB 6.0
application to write data into the table and it works fine. I captured 5
records. On 3 records I did not enter any data in the Text field datatype. I
have also found out that this Text field data is being stored as (Memo) when I
open the table in datasheet. I have gone further and tried to retrieve the
records using a recordset and assign the values from the recordset into a field
say Text1 on a form. This works fine if the Text field stored as (Memo) has
value. In cases where it as NULL, I get this error mesage  from my small VB
application - "Multiple-step OLE DB operation generated errors. Check each OLE
DB status value, if available. No work was done."

In my VB application the code is like this:

"If NOT ISNULL(rs!Rep) then Text1.text = rs!Rep." The (NOT ISNULL) I am using
it to test if there is any value.

I have tried to use "If len(trim(rs!Rep)) > 0 then Text1.text = rs!Rep" and it
does not work either - same error.

I have checked my Data Source Name and the Login is fine, Connect Options I did
not select any option and Advanced I selected the first top 3 options.

So I don't know where I am going wrong if you can help please because I have a
project waiting for this break-through.

Thanks.


Earn $52 per hosting referral at Lunarpages.