ramirez Posted March 10, 2014 Share Posted March 10, 2014 Hi all. Have made some google search but couldn't found a correct answer. I'm maked a GUI with only 2 buttons (for now) START and STOP and, after pressed they will post the time of the action in a access DB. The script is made to, when I press start it keeps the time in a string and when I press stop it will insert the time of start and the time of the stop in a new record. My problem is to use the string in the insert command. I'm at home and don't have the complete code here but tomorrow I'll post. Thanks in advace. Link to comment Share on other sites More sharing options...
Solution Danp2 Posted March 10, 2014 Solution Share Posted March 10, 2014 (edited) Suggest that you review >this thread. I have been using this UDF to successfully read from and update an Access database. Edit: Here's some code showing how to insert a record where $UserName is a string containing the value to be written -- ; Try inserting a new record $Result = _SQL_Execute(-1, "insert into usersettings (Name) VALUES ( '" & $UserName & "')" ) Edited March 10, 2014 by Danp2 ramirez 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ramirez Posted March 11, 2014 Author Share Posted March 11, 2014 Thanks Danp2, This solved the problem. VALUES ( '" & $UserName & "')" ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now