Re: Not inserting into DB
What is plotadder? If you're setting a .recordsorce of a control, you wouldn't use an INSERT statement, and it wouldn't perform an INSERT anyway. You need to execute the statement, not set it as a recordsource.
Re: Not inserting into DB
Plotadder is the standard data control. How do i execute SQL in VB 6 ? Sorry a total n00b here :(
Re: Not inserting into DB
Well, I don't use a datacontrol. And due to work, don't use ADO much, which is what you want here.
I could give you the DAO code to do this, but you really should use ADO from VB6. There are plenty of examples on the forums here, but basically you want to declare & set a connection object, then use that to execute your SQL string. Look in the FAQ's for Beacon's ADO tutorial.
If si, Hack or one of the other gurus who know this better don't chime in, I'll look it up and post something myself.