Access 2003,
Hi All,
I am runnig the code below, but nothing happens, no error, nothing. I think the syntax is correct, but I get the feeling I am missing something?
It runs when I put the following in the immediate window:
Any info appreciated.
Michael
Hi All,
I am runnig the code below, but nothing happens, no error, nothing. I think the syntax is correct, but I get the feeling I am missing something?
Code:
Private Sub Command34_Click()
Dim sql1 As String
sql1 = "SELECT Mm.Dvla_Make, Mm.Dvla_Model_Code, Mm!Dvla_Make & Mm!Dvla_Model_Code AS DVLA_CODE, [Mm]![Dvla_make] AS Make, Mm.Model_Description INTO DVLA_Temp FROM Mm;"
End Sub
Code:
DoCmd.RunSQL "SELECT Mm.Dvla_Make, Mm.Dvla_Model_Code, Mm!Dvla_Make & Mm!Dvla_Model_Code AS DVLA_CODE, [Mm]![Dvla_make] AS Make, Mm.Model_Description INTO DVLA_Temp FROM Mm;"
Any info appreciated.
Michael