S
Sunny
In vba code, How can I insert recrds into one table from recordset defined
earlier in the code. I want something like this:
Dim rsClient As Recordset
Dim stSQL As String
Set rsClient = CurrentDb.OpenRecordset(Name:="Clients", Type:=dbOpenDynaset)
stSQL = "INSERT INTO TEMPCLIENT1 SELECT * FROM rsClient" 'rsClient is
not a table in database it is recordset set in previous line
CurrentDb.Execute (stSQL)
Any other alternative?
Thanks.
earlier in the code. I want something like this:
Dim rsClient As Recordset
Dim stSQL As String
Set rsClient = CurrentDb.OpenRecordset(Name:="Clients", Type:=dbOpenDynaset)
stSQL = "INSERT INTO TEMPCLIENT1 SELECT * FROM rsClient" 'rsClient is
not a table in database it is recordset set in previous line
CurrentDb.Execute (stSQL)
Any other alternative?
Thanks.