I am presently trying out the MyDac Demo component for MySQL, using Delphi 2007 for Win32. I am told it has similar functionality to the ADO components. However, I am having problems inserting records into a table with it. Here is what I used to insert the record:
MyTable1 is supposed to be similar to AdoTable1 with the ADO components. When I execute this code, I get the same error message indicated in the subject title for this post. I tried putting ',' instead of the '+' signs and I still get the same error message. I am using Edit Boxes for the end-user to type in, which will later 'submit' all this information using a (you guessed) 'Submit' button, which inserts the the record into the table. I tried using DBEdit fields, but it won't allow me to enter data with it. I also tried googling the topic, with not much success. Thanks for your time.
P.S. Please note that I am taking tutorial code snippets from ' in my application. It states that this is the easiest method to insert records. If anyone has any additional insights on this, please 'Submit'!
Code:
MyTable1.InsertRecord(StudentLastName + StudentFirstName + ParentFullName +
StudentBirthDate + StudentAge + StudentPhoneHome + StudentPhoneCell +
StudentPhoneWork + StudentAddress + StudentCity + StudentState +
StudentZipCode + StudentSignupDate + StudentSignupTime + StudentStartDate +
StudentStartTime)
P.S. Please note that I am taking tutorial code snippets from ' in my application. It states that this is the easiest method to insert records. If anyone has any additional insights on this, please 'Submit'!