G
Guest
Is it not possible to create a temp table while running through a procedure?
I want to create a temp table to use as for the next portion of code which
isn't here. I can create a table without any problem but can't create a temp
table.
Private Sub import_Click()
Dim dbCurr As DAO.Database
Dim strSQL As String
Set dbCurr = CurrentDb()
strSQL = "SELECT t.id, t.acctnum,(select count(*) from (select distinct
y.acctnum from tbl_Claim_Lines y) z where z.acctnum <=t.acctnum) as claimid"
& _
" into temp from tbl_Claim_Lines t"
dbCurr.Execute strSQL
End Sub
Any thoughts would be appreciated.
I want to create a temp table to use as for the next portion of code which
isn't here. I can create a table without any problem but can't create a temp
table.
Private Sub import_Click()
Dim dbCurr As DAO.Database
Dim strSQL As String
Set dbCurr = CurrentDb()
strSQL = "SELECT t.id, t.acctnum,(select count(*) from (select distinct
y.acctnum from tbl_Claim_Lines y) z where z.acctnum <=t.acctnum) as claimid"
& _
" into temp from tbl_Claim_Lines t"
dbCurr.Execute strSQL
End Sub
Any thoughts would be appreciated.