OK, here's the code that I am trying to use:
Dim strSQL as String
Dim tnm as String
'Get the table name that I am creating in a form
tnm = Text0.Value
'I am adding another column to my trm table that is generated from my Makes table.
strSQL = "UPDATE " & tnm & " INNER JOIN MAKES ON " & _
tnm & ".MakeAbbr = MAKES.MakeAbbr SET " & _
tnm & ".MakeAbbr = '" & MAKES.MakeName"
DoCmd.RunSQL strSQL
When I try this code, I'm getting a syntax error(missing operator) in query '2002.MakeAbbr = MAKES.MakeAbbr'.
2002 was the table that I created or that was in tnm.
Any suggestion to get this debugged.
Dim strSQL as String
Dim tnm as String
'Get the table name that I am creating in a form
tnm = Text0.Value
'I am adding another column to my trm table that is generated from my Makes table.
strSQL = "UPDATE " & tnm & " INNER JOIN MAKES ON " & _
tnm & ".MakeAbbr = MAKES.MakeAbbr SET " & _
tnm & ".MakeAbbr = '" & MAKES.MakeName"
DoCmd.RunSQL strSQL
When I try this code, I'm getting a syntax error(missing operator) in query '2002.MakeAbbr = MAKES.MakeAbbr'.
2002 was the table that I created or that was in tnm.
Any suggestion to get this debugged.