Hi
I want to select first n recordsets from a table in a new table , where n is a variable recived from a combobox in a form.Here is a part of my code :
Private Sub Submit_Click()
Dim strSQL As String
strSQL = "SELECT TOP cint(Me.cmb_Procent) tblTemp.* from tbl into newtable"
DoCmd.RunSQL strSQL
End Sub
I receive the error : The SELECT statement includes a reserve word or an argument name that is misspelled or missing, or the punctuation is incorrect.
Thanks in advance.
Adrian
I want to select first n recordsets from a table in a new table , where n is a variable recived from a combobox in a form.Here is a part of my code :
Private Sub Submit_Click()
Dim strSQL As String
strSQL = "SELECT TOP cint(Me.cmb_Procent) tblTemp.* from tbl into newtable"
DoCmd.RunSQL strSQL
End Sub
I receive the error : The SELECT statement includes a reserve word or an argument name that is misspelled or missing, or the punctuation is incorrect.
Thanks in advance.
Adrian