Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL & Data Environment w/VB

Status
Not open for further replies.

cj92713696

Programmer
Nov 23, 2000
105
US
I have been writing a Visual Basic 6 application to use Microsoft Access 2000. It works great. I have recently installed MySQL and migrated the Access data to MySQL. The database schemas are the same. I went into my Data Environment Connection object and changed from Jet 4.0 to ODBC using a MySQL DSN. My app. appears to work fine at the start. My data aware comboboxes pull down the correct data so I know I'm connecting fine. When I attempt to pass information to the data environment via Visual Basic it appears as though MySQL only sees it as a NULL value. For instance, I have a log SQL object that I call insert_Log.

Here are its contents:

INSERT INTO Log ( Log ) VALUES (@LogStr);

When I want to log anything in my program, I simply issue a de.insert_Log "Message"

This routine runs at startup and always worked fine before making the switch to MySQL. Now, MySQL records this information as NULL in my Log table.

What am I doing wrong? Is there a parameter I should setting?

Your help is greatly appreciated,
CJ
 
This is a SQL server forum. You might have better luck with a MySQL forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top