Hi there, I've using the ADO connection within vb6. I know about the Data.Recordset.Addnew
and Data.Update way of adding a new record but is there a way of adding a new record without having to link objects to the Table/Entity? Is it possible to use variables to do this. Currently i have TxtBatch which i would like to assign to DBbatch and add the value of that record to the database. Database = MS Access 2000. Cheers
Quick response as always. Thanks. Below is the code i have created, when ran i get data type conversion error. I havent declared any of the variables, i have a feeling it could be because of DBBDate? Any ideas Up-Voted
if date_received column typed as a Date/Time, then I am not sure whether that is a valid format. There should be a space instead of a . before Value which should be VALUES, also you need to construct the string, you cannot pass in the variables because they are out of scope for the database engine.
the last part of the string, from the first ")" should be something like