HELP please!! Error in connection.execute 
Author Message
 HELP please!! Error in connection.execute

Hello there,
    I have established an ADO connection to a Microsoft Access database
called users.mdb and I am trying to do the following SQL update
    SQL = "INSERT INTO profiles (mEmail, mGender, mHobbies, mLevel,
mLocation, mMarital,"
    SQL = SQL & "mName, mOccupation, mPicture, mQuestion, mUserid, mUserreg,
mPassword, mAnswer)"
    SQL = SQL & "VALUES ('"
    SQL = SQL & mEmail & "', '"
    SQL = SQL & mGender & "', '"
    SQL = SQL & mHobbies & "',"
    SQL = SQL & mStatusLevel & ", '"
    SQL = SQL & mLocation & "', '"
    SQL = SQL & mMarital & "', '"
    SQL = SQL & mName & "', '"
    SQL = SQL & mOccupation & "', '"
    SQL = SQL & mPicture & "','"
    SQL = SQL & mQuestion & "', '"
    SQL = SQL & mUserID & "', "
    SQL = SQL & mRegisterUser & ", '"
    SQL = SQL & mPassword & "', '"
    SQL = SQL & mAnswer & "')"

    The table in the users.mdb is called profiles but when I try to execute
the SQL on the database I am getting an error back and the err.description
displays [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
    Can someone tell me why please? There is not a COUNT field present at
all in the database structure, I have tried to rebuild the database, repair
and reconstruct but it still comes back with this.
    I am at my wits end, any one any ideas?

--
Thank you for your time
Anthoni Gardner
Born2Code Software
http://www.*-*-*.com/



Sun, 18 May 2003 03:00:00 GMT  
 HELP please!! Error in connection.execute
Try putting a space either before the word VALUES or after the parenthesis
in the line above it.


Quote:
> Hello there,
>     I have established an ADO connection to a Microsoft Access database
> called users.mdb and I am trying to do the following SQL update
>     SQL = "INSERT INTO profiles (mEmail, mGender, mHobbies, mLevel,
> mLocation, mMarital,"
>     SQL = SQL & "mName, mOccupation, mPicture, mQuestion, mUserid,
mUserreg,
> mPassword, mAnswer)"
>     SQL = SQL & "VALUES ('"
>     SQL = SQL & mEmail & "', '"
>     SQL = SQL & mGender & "', '"
>     SQL = SQL & mHobbies & "',"
>     SQL = SQL & mStatusLevel & ", '"
>     SQL = SQL & mLocation & "', '"
>     SQL = SQL & mMarital & "', '"
>     SQL = SQL & mName & "', '"
>     SQL = SQL & mOccupation & "', '"
>     SQL = SQL & mPicture & "','"
>     SQL = SQL & mQuestion & "', '"
>     SQL = SQL & mUserID & "', "
>     SQL = SQL & mRegisterUser & ", '"
>     SQL = SQL & mPassword & "', '"
>     SQL = SQL & mAnswer & "')"

>     The table in the users.mdb is called profiles but when I try to
execute
> the SQL on the database I am getting an error back and the err.description
> displays [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
>     Can someone tell me why please? There is not a COUNT field present at
> all in the database structure, I have tried to rebuild the database,
repair
> and reconstruct but it still comes back with this.
>     I am at my wits end, any one any ideas?

> --
> Thank you for your time
> Anthoni Gardner
> Born2Code Software
> http://w3.to/born2code



Sun, 18 May 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Please Help - Error ADODB.Connection Error

2. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

3. connection error...please help

4. Database connection error - Please Help!

5. please help w/ overflow error on ADO connection.

6. Error Connection to the internet, please help

7. Connection error 20599 - Please, HELP!!!

8. errors different when executing SQL statements via recordset or connection object

9. Prob: Error Doing Connection.Execute While In Transaction

10. command.execute vs. connection.execute

11. Can anyone HELP me PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE

12. please help with creating controls while the program is executing

 

 
Powered by phpBB® Forum Software