C
chanu
i have the following function.
Public Function sqltest( )
Dim strSQL As String
strSQL = "INSERT INTO [tblEmpOldDA] " & _
"SELECT 1 AS EmpSerialID ," & _
"[tblOldDA].FromDate ," & _
"[tblOldDA].ToDate ," & _
"[tblOldDA].Rate " & _
"FROM [tblOldDA] "
CurrentDb.Execute strSQL
End Function
when i use this query it is throwing runtime error 3061 too few parameters.
Expected 1
when i tried this with docomd.runsql, it is asking me for RATE parameter.
Actually i am creating tblEmpOldDA as a duplicate table of tblOldDA with
EmpSerialID as an extra field. Why is it not working? I have already asked a
question about creating a duplicate table two days ago but i found no answer
from this forum. So, friends if at all i am unclear in representing the
problem, pl. ask me follow-up question to make yourself clear about it . but
don't ignore it please. I will be hopeful of your reply
Public Function sqltest( )
Dim strSQL As String
strSQL = "INSERT INTO [tblEmpOldDA] " & _
"SELECT 1 AS EmpSerialID ," & _
"[tblOldDA].FromDate ," & _
"[tblOldDA].ToDate ," & _
"[tblOldDA].Rate " & _
"FROM [tblOldDA] "
CurrentDb.Execute strSQL
End Function
when i use this query it is throwing runtime error 3061 too few parameters.
Expected 1
when i tried this with docomd.runsql, it is asking me for RATE parameter.
Actually i am creating tblEmpOldDA as a duplicate table of tblOldDA with
EmpSerialID as an extra field. Why is it not working? I have already asked a
question about creating a duplicate table two days ago but i found no answer
from this forum. So, friends if at all i am unclear in representing the
problem, pl. ask me follow-up question to make yourself clear about it . but
don't ignore it please. I will be hopeful of your reply