I am having some trouble opening up a table with a space in the name.
Here's an example of what I'm doing...
Dim db As Database
Dim rsTT As Recordset
Set db = OpenDatabase(strPath)
Dim strSQL As String
strSQL = "select * from " & tbName & " where ID = " & ID
Set rsTT = db.OpenRecordset(strSQL)
I'm taking in a table name (tbName) and trying to first open up the database. It works ok if the table names are like... ranks, information, members, etc... but if there is a space in the name like... client info ... then it does't open up.
Is there a way I can open that table up with the space in the name?
Here's an example of what I'm doing...
Dim db As Database
Dim rsTT As Recordset
Set db = OpenDatabase(strPath)
Dim strSQL As String
strSQL = "select * from " & tbName & " where ID = " & ID
Set rsTT = db.OpenRecordset(strSQL)
I'm taking in a table name (tbName) and trying to first open up the database. It works ok if the table names are like... ranks, information, members, etc... but if there is a space in the name like... client info ... then it does't open up.
Is there a way I can open that table up with the space in the name?