aziz rasul
Active member
- Local time
- Today, 04:54
- Joined
- Jun 26, 2000
- Messages
- 1,935
I have the following code which works: -
For Index = 1 To LOPID_Count
strSQL = "CREATE TABLE [tblSFF - COSAR03] ([Record Type] TEXT (1));"
DoCmd.RunSQL strSQL
Next Index
This creates a table called "tblSFF - COSAR03" which is fine. However I now want to add the Index value at the end of the table name e.g. for Index = 1, the new table should be "tblSFF - COSAR031". I have tried the following code for strSQL i.e.
strSQL = "CREATE TABLE [tblSFF COSAR03] & Index & " ([Record Type] TEXT (1));"
However this doesn't work. Can anyone tell me how to change the syntax to obtain "tblSFF - COSAR031" etc?
[This message has been edited by aziz rasul (edited 06-11-2001).]
[This message has been edited by aziz rasul (edited 06-11-2001).]
For Index = 1 To LOPID_Count
strSQL = "CREATE TABLE [tblSFF - COSAR03] ([Record Type] TEXT (1));"
DoCmd.RunSQL strSQL
Next Index
This creates a table called "tblSFF - COSAR03" which is fine. However I now want to add the Index value at the end of the table name e.g. for Index = 1, the new table should be "tblSFF - COSAR031". I have tried the following code for strSQL i.e.
strSQL = "CREATE TABLE [tblSFF COSAR03] & Index & " ([Record Type] TEXT (1));"
However this doesn't work. Can anyone tell me how to change the syntax to obtain "tblSFF - COSAR031" etc?
[This message has been edited by aziz rasul (edited 06-11-2001).]
[This message has been edited by aziz rasul (edited 06-11-2001).]