I get very confused about what in a access sql command required brackets/quotes.
Where can I go in the forums to get questions addressed regarding access
Dim
UpdateCommand As StringUpdateCommand = "UPDATE " & AdditionStructure.DatabaseTable & " SET ChildIndexList = @ChildIndexList FROM " & AdditionStructure.DatabaseTable & " WHERE (ID = @ID)"
Dim MyUpdateCommand As New OleDbCommand(UpdateCommand, Con)MyUpdateCommand.Parameters.Add("@ID", AdditionStructure.ParentId)
MyUpdateCommand.Parameters.Add("@ChildIndexList", AdditionStructure.ParentChildIndexList)
MyUpdateCommand.ExecuteNonQuery()

SQL Server and Access
almightylinuxgod
Hi,
I'm moving this post to .NET Framework Data Access and Storage.
Ok, you place brackets on fields that has a corresponding keyword in access or sql server. Also fields witeh spaces are required to have a bracket. Quotes are mainly required o string, datetime types...
cheers,
Paul June A. Domag
Ben Taylor
Thanks, Paul.
Here's the link to the post in the Data Access and Storage forum:
http://forums.microsoft.com/msdn/ShowPost.aspx PostID=67915
David Sceppa
ADO.NET Program Manager
Microsoft