Search found 28 matches
- Thu Feb 06, 2020 12:21 pm
- Forum: Windows
- Topic: Invalid Connection ID SQLite
- Replies: 18
- Views: 11232
Re: Invalid Connection ID SQLite
Thank you! I will give that a try and report back.
- Thu Feb 06, 2020 12:13 pm
- Forum: Windows
- Topic: Invalid Connection ID SQLite
- Replies: 18
- Views: 11232
Re: Invalid Connection ID SQLite
Sorry Klaus...I'm just not being descriptive enough I guess. What I do is one card has a datagrid that uses the "databaseConnectDailyLog" command to open the "dailyLogDB". The second card has a datagrid that uses the "databaseConnectMedAdmin" command to connect and add data to that particular DB. Sw...
- Thu Feb 06, 2020 11:23 am
- Forum: Windows
- Topic: Invalid Connection ID SQLite
- Replies: 18
- Views: 11232
Re: Invalid Connection ID SQLite
Ok, here is the entire code I use in the stack script in order to handle the commands: *So this is how I connect. The "0x0023" is the shared user folder for multiple users in the Window's environment. on databaseConnectMedAdmin local tDatabasePath ## The database must be in a writeable location put ...
- Thu Feb 06, 2020 3:28 am
- Forum: Windows
- Topic: Invalid Connection ID SQLite
- Replies: 18
- Views: 11232
Re: Invalid Connection ID SQLite
Some more clarification....If I open the first database, close it and go to the next card and access the second database, I can add records and retrieve them. It is only when I attempt to delete an entry from the SQLite DB does it give me a connection ID error. I'll show you my call to delete record...
- Thu Feb 06, 2020 2:08 am
- Forum: Windows
- Topic: Invalid Connection ID SQLite
- Replies: 18
- Views: 11232
Invalid Connection ID SQLite
Hello all, I have a question regarding connecting to a SQLite database or rather connecting to two different databases from a single stack. So basically I have two datagrids in a stack on separate cards that I display data from two SQLite databases I have created. When I connect to one of them, ever...
- Wed Jan 29, 2020 3:52 am
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
AxWald, Thanks again for the support! After some modifications to the code to pass the variables into the "INSERT" command, it works just fine. What I did not pay attention to was I was connecting to an old database that I created for testing and not the one I was attempting to write to. Needless to...
- Tue Jan 28, 2020 4:33 am
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
First off, thank you all for the help. I feel like I have a small grasp on how it woks now. I do have a question though. How can I use a variable with the INSERT INTO command? I have local variables that I would like to use. Here is my code.... put "INSERT INTO dailyLog (d_field, t_field, Supervisor...
- Sun Jan 26, 2020 9:26 pm
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
AxWald, Thank you for all the valuable information. I took a look and it has helped. Also, I was not aware that you could take the SQL command into the DB manager and execute the script to see if it passes. (I'm still learning how this all works). NOW, the results of my tinkering around found that f...
- Sat Jan 25, 2020 10:22 pm
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
I'm not sure why but I am absolutely unable to create a table in the new database I create. I don't understand because it looks like my command structure for creating the fields is solid. on databaseCreateTables ## Add a contact_details table to the database put getDatabaseID() into tDatabaseID put ...
- Sat Jan 25, 2020 9:33 pm
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
Thank you Bogs! I'm going to look that over as well. I appreciate the help.
- Fri Jan 24, 2020 12:12 pm
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
Yes we are! Thank you again for the link...I am checking it out now!
- Fri Jan 24, 2020 11:43 am
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
Re: SQLite adding fields
Klaus, Thank you for the response! I was wondering if the command structures that you showed me would work in LC. I will take a look today and see what I can do with them. Does LC recognize "date" "datetime", "time" "float" etc? I have been searching the forum for examples of how people have set up ...
- Fri Jan 24, 2020 6:54 am
- Forum: Windows
- Topic: SQLite adding fields
- Replies: 14
- Views: 8760
SQLite adding fields
Hello all....I am attempting to follow the tutorial on creating tables and fields for SQLite and am running into some issues. Firstly, I can't seem to find anything that shows what types of values to use for creating fields ie: "char(50), text, bool etc. Secondly, using the tutorial I am able to cre...