jet-sql

ADO is truncating Excel data

微笑、不失礼 提交于 2019-12-19 08:27:08
问题 I have a function that gets an ADODB recordset from the contents of a worksheet using ADO, as follows: Function WorksheetRecordset(workbookPath As String, sheetName As String) As adodb.Recordset Dim objconnection As New adodb.Connection Dim objrecordset As New adodb.Recordset On Error GoTo errHandler Const adOpenStatic = 3 Const adLockOptimistic = 3 Const adCmdText = &H1 objconnection.CommandTimeout = 99999999 objconnection.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=" &

Why is this very simple SQL query failing in MS Access?

寵の児 提交于 2019-12-19 07:39:20
问题 I have a query that by all rights should not possibly fail, and I can't for the life of me figure out why INSERT INTO Grocery_Store_Prices(Store,Item,Brand,Price,Unit,Quantity,Note) VALUES("Kroger","Cheesy Poof","Cartman",0.51,"fart",15,"what is going on"); When I try to run the query I get "Syntax error in INSERT INTO statement" with the Note field highlighted. If I omit the Note field and its value, the query works fine. Is there something really obvious I'm missing, or is there an Jet SQL

What is the proper way to refer to the SQL dialect used by Microsoft Access?

淺唱寂寞╮ 提交于 2019-12-12 14:53:41
问题 I'm converting some SQL that came from Microsoft Access into T-SQL, and I'm making note of these changes in my documentation. This has led me to ask, what is the proper way to refer to the SQL extension used by Access? I've seen casual references to "Jet SQL" and "Access SQL," but I'm not confident that these are official or up-to-date. 回答1: Microsoft seems to call it 'Microsoft Jet SQL': http://office.microsoft.com/en-001/access-help/comparison-of-microsoft-jet-sql-and-ansi-sql-HP001032250

Why is this very simple SQL query failing in MS Access?

拥有回忆 提交于 2019-12-01 06:06:32
I have a query that by all rights should not possibly fail, and I can't for the life of me figure out why INSERT INTO Grocery_Store_Prices(Store,Item,Brand,Price,Unit,Quantity,Note) VALUES("Kroger","Cheesy Poof","Cartman",0.51,"fart",15,"what is going on"); When I try to run the query I get "Syntax error in INSERT INTO statement" with the Note field highlighted. If I omit the Note field and its value, the query works fine. Is there something really obvious I'm missing, or is there an Jet SQL quirk buried here??? The table it's acting on is: Grocery_Store_Prices ID -- autonumber primary key