Yes, more or less you need only
Code: Select all
tell Application "FileMaker Pro"
set QuestoID to ID of (create record of layout "List" of document "ASNomeDb" with data ASiDati)
end tell
mwieder:
sorry but I dont know Access enough to make it multiuser. I explored the menus with no result...Everytime in Access I have to reopen the table to see my new records.
Speaking of my typo, I noticed that Access does not require ";" at the end of the SQL query:
SQLString = "select * from TheTable where ID = NewID"
or
SQLString = "select * from TheTable where ID = NewID";
give the same result.
As a matter of fact it looks like I cannot put 2 query on the same call:
This (to do a new record and get back the auto ID generated by Acess):
Code: Select all
set MyDB = CreateObject("ADODB.Connection")
MyDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=The_Db_Path"
SQLString = "INSERT INTO TheTable (name, team, Thedate, TheTime) VALUES ('newName', 'newTeam', 'newTheDate', 'newTheTime'); SELECT @@IDENTITY;"
set rs = MyDB.Execute(SQLString)
result = rs(0)
set rs = nothing
MyDB.Close
set MyDB = nothing
But this works:
Code: Select all
set MyDB = CreateObject("ADODB.Connection")
MyDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=The_Db_Path"
SQLString = "INSERT INTO TheTable (name, team, Thedate, TheTime) VALUES ('newName', 'newTeam', 'newTheDate', 'newTheTime')"
set rs = MyDB.Execute(SQLString)
SQLString2 = " SELECT @@IDENTITY"
set rs = MyDB.Execute(SQLString2)
result = rs(0)
set SQLString = nothing
set rs = nothing
MyDB.Close
set MyDB = nothing
Where can I find a compreensive list of Sql calls that I can send from RunRev? Do I have to make them all up (find, update, AND & OR, working with dates, etc
Or can I do Dns less calls using transcript and I am just wasting my time with VBscript ?
Thanks for any input you can give me
Trevix