Database Basic Questions: New Records in Access/ODBC
Posted: Tue Oct 02, 2012 7:04 pm
I'm brand new to databases and am having a hard time finding information. I'm using Microsoft Access with an ODBC connection. I've figured out how to connect to the database using revOpenDatabase, how to retrieve column names using revDatabaseColumnNames, and how to get the Access records to display in a dataGrid.
What I don't know how to do is put a new record INTO the Access database.
I've got two plain text fields and a pull-down (option) button. I'm trying to script a button to take these two fields, the info from the option button, and a timestamp of some sort and place them as a new record in the Access file.
I'm guessing this is done with an SQL query. I believe I learned today that while "query" sounds like I'm just GETTING information from the Access file, a query can also be used to put stuff IN the Access file. Right? Wrong?
So I think I need to know more about using SQL. There's a thing mentioned several times in the LiveCode User Guide called the Database Query Builder--some sort of tool, but it's not EXPLAINED in the LiveCode User Guide.
I really did look through all the posts in this forum--the titles anyway, but I couldn't find my answers. Thanks if you can help.
What I don't know how to do is put a new record INTO the Access database.
I've got two plain text fields and a pull-down (option) button. I'm trying to script a button to take these two fields, the info from the option button, and a timestamp of some sort and place them as a new record in the Access file.
I'm guessing this is done with an SQL query. I believe I learned today that while "query" sounds like I'm just GETTING information from the Access file, a query can also be used to put stuff IN the Access file. Right? Wrong?
So I think I need to know more about using SQL. There's a thing mentioned several times in the LiveCode User Guide called the Database Query Builder--some sort of tool, but it's not EXPLAINED in the LiveCode User Guide.
I really did look through all the posts in this forum--the titles anyway, but I couldn't find my answers. Thanks if you can help.