andrefrancis
andrefrancis
- Local time
- Yesterday, 20:34
- Joined
- Mar 11, 2005
- Messages
- 40
Can anyone help with the following ... which generates a syntax error when run in VBA:
Private Sub CopyTableStructure_Click()
Dim MSS0 As String
'set up MySQLString to create new tables with structure ONLY
MSS0 = "CREATE TABLE LU_WMCHDL_Inf_v2 AS SELECT * FROM"
MSS0 = MSS0 & " LU_WMCHDL_Inf_v1 WHERE 1=2;"
DoCmd.RunSQL MSS0
End Sub
Any ideas?
Private Sub CopyTableStructure_Click()
Dim MSS0 As String
'set up MySQLString to create new tables with structure ONLY
MSS0 = "CREATE TABLE LU_WMCHDL_Inf_v2 AS SELECT * FROM"
MSS0 = MSS0 & " LU_WMCHDL_Inf_v1 WHERE 1=2;"
DoCmd.RunSQL MSS0
End Sub
Any ideas?