Z
Zenon
Guest
Hi! First time user here! =)
I'm trying to do a simple SQL as seen below but Access keeps prompting that there is a syntax error at the FROM clause. Can anyone help to explain! Thanks!
Private Sub Command0_Click()
Dim SQL As String
SQL = "SELECT *" & _
"FROM CompletionStage" & _
"WHERE CompletionStage.Packet_No = '05-A-15315-01-5'"
DoCmd.RunSQL SQL
End Sub
I'm trying to do a simple SQL as seen below but Access keeps prompting that there is a syntax error at the FROM clause. Can anyone help to explain! Thanks!
Private Sub Command0_Click()
Dim SQL As String
SQL = "SELECT *" & _
"FROM CompletionStage" & _
"WHERE CompletionStage.Packet_No = '05-A-15315-01-5'"
DoCmd.RunSQL SQL
End Sub