A
Al G
Hi,
VS2005team(w/ sp1), VB, XP(w/ sp2)
I am attempting to open a file that has parenthesis in the filename.
The following code works OK without the "( )", but not with them. The error
is: "Command contains unrecognized phrase/keyword."
Does anyone know a way to work around this?
TicketFile = "C:\convert\Test(3).dbf"
connectionstring = "Provider=VFPOLEDB.1;Data Source=" & ticketfile &
";Collating Sequence=MACHINE"
Dim queryString As String = "SELECT * FROM " & TicketFile
Using connection As New OleDbConnection(connectionstring)
Dim command As New OleDbCommand(queryString, connection)
connection.Open()
Dim reader As OleDbDataReader = Command.ExecuteReader()
VS2005team(w/ sp1), VB, XP(w/ sp2)
I am attempting to open a file that has parenthesis in the filename.
The following code works OK without the "( )", but not with them. The error
is: "Command contains unrecognized phrase/keyword."
Does anyone know a way to work around this?
TicketFile = "C:\convert\Test(3).dbf"
connectionstring = "Provider=VFPOLEDB.1;Data Source=" & ticketfile &
";Collating Sequence=MACHINE"
Dim queryString As String = "SELECT * FROM " & TicketFile
Using connection As New OleDbConnection(connectionstring)
Dim command As New OleDbCommand(queryString, connection)
connection.Open()
Dim reader As OleDbDataReader = Command.ExecuteReader()