SQLite Forum

Finding database file
Login
Thank you to all who have replied. I am sorry for not responding sooner but being retired has some advantages...
I have placed the database in C:/Users/craig/My1stdb.db on a windows 10 system.
I am new to SQLite, webkit and all of the other access methods.
I apparently don't understand everything that I am trying to do.  I have accessed the database thru JS but can't get a transaction to work. I have a breakpoint on the first function statement but that appears to be the failing point. 
The var db contains the version of the database so I am assuming it has been found and is open. The database contains 1 row and was built and populated using the DB Browser for SQLite tools.
The code below is what I am trying to get to work but am at a complete loss.
Any help would be greatly appreciated.

    var dbSize = 2 * 1024 * 1024; // 2MB
    var db = openDatabase("c:/users/craig/db/Medical.db","1.0","Medical Database", dbSize);
    
    db.transaction(
        function a(tx){
            tx.executeSql('SELECT * FROM FAMILY', [],
                function printResults(tx, results){
                   var len = results.rows.length; 
                   msg = "<p>Found rows: " + len + "</p>";
                   alert(msg);
                }
            );
        }
    );