Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Location
    South Dakota
    Posts
    18

    Smile Need help with error in yearbook project

    I am getting an error in my project and I don't know what it is. I am posting the file and when you run it I get a debug error in the SQL logic. If someone can help me out here I would greatly appreciate it. I am posting the file right now.


    TRACE: Main -> On Show
    TRACE: 0: local this="Main";
    TRACE: 2: db=SQLite.Open("Autoplay\\Docs\\yearbook.db");
    TRACE: LastError = 0 ("Success.")
    TRACE: 5: SQLite.Query(db, "Create table Students(RecID integer primary key, ID text, LastName text, FirstName text, Semester text, ClassStanding text, Major text, Minor text, HomeTown text, State text, ImagePath text)");

    here is the error when you run it:
    TRACE: LastError = 30001 ("SQL logic error or missing database")

    TRACE: 8: tblRecordSet = SQLite.QueryToTable(db, "Select * from Students;");
    TRACE: LastError = 0 ("Success.")
    TRACE: 10: if tblRecordSet.Rows == 0 then
    TRACE: 40: SQLite.Close(db)
    TRACE: LastError = 0 ("Success.")

    Thanks in advance to anyone that can help,
    Jason
    Last edited by perry_d76; 04-21-2004 at 10:38 AM.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    The error that is reported is due to the fact that there is already a table in the database named Students. Executing Create Table for a table that already exists should generate an error.

    I purposely put that there so that if the database wasn't found, it would create it, the table and enter the sample data.

    If you already have the database and data, you don't need to even have that statement in your project.

    Quote Originally Posted by perry_d76
    I am getting an error in my project and I don't know what it is. I am posting the file and when you run it I get a debug error in the SQL logic. If someone can help me out here I would greatly appreciate it. I am posting the file right now.


    TRACE: Main -> On Show
    TRACE: 0: local this="Main";
    TRACE: 2: db=SQLite.Open("Autoplay\\Docs\\yearbook.db");
    TRACE: LastError = 0 ("Success.")
    TRACE: 5: SQLite.Query(db, "Create table Students(RecID integer primary key, ID text, LastName text, FirstName text, Semester text, ClassStanding text, Major text, Minor text, HomeTown text, State text, ImagePath text)");

    here is the error when you run it:
    TRACE: LastError = 30001 ("SQL logic error or missing database")

    TRACE: 8: tblRecordSet = SQLite.QueryToTable(db, "Select * from Students;");
    TRACE: LastError = 0 ("Success.")
    TRACE: 10: if tblRecordSet.Rows == 0 then
    TRACE: 40: SQLite.Close(db)
    TRACE: LastError = 0 ("Success.")

    Thanks in advance to anyone that can help,
    Jason

  3. #3
    Join Date
    Mar 2004
    Location
    South Dakota
    Posts
    18

    Thanks

    ok I see what you mean

Similar Threads

  1. Yearbook Project, Need Help anyone Please Present on April 14th
    By perry_d76 in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 04-09-2004, 11:02 AM
  2. HOWTO: Open a Version 3.0 Project in Version 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 02:09 PM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. INFO: Recovering a Project File From a Built Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 08:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts