Hi,
Thaks guys, it works.The problem was with syntax.
strSQL = "SELECT TOP " & cint(Me.cmb_Procent/10) & " tblTemp.* " & _
"INTO " & strTableName & " " & _
"FROM tblTemp " & _
"ORDER BY tblTemp.RandomNumber;"
is correct.I have one more question.I want...
Hi,
cmb_Procent is a combobox in a form.
Here is my code :
strSQL = "SELECT TOP cint(" & Me.cmb_Procent & " /10) tblTemp.* " & _
"INTO " & strTableName & " " & _
"FROM tblTemp " & _
"ORDER BY tblTemp.RandomNumber;"
The error is : "The SELECT statement...
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...
Hello,
Can u help me please with the following problem?
A want to use "between" in a filter with 2 dates.Here is the code:
Private Sub Submit_Click()
Dim str As String
str = "Total_sampling.Statusenddate between #"&Me.Data1&"# AND #"&Me.Data2&"#"
DoCmd.OpenForm "Total_sampling", acFormDS, ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.