G
Guest
Hi,
I'm trying to create a table via some SQL in a module. I'm not very good at
this, so need some help.
myservice = "Resources Service Area"
strSQL = "SELECT * FROM tblSicknessInAPeriod INTO tblSicknessInAPeriodtemp
WHERE [LastOfService] = '" & myservice & "'"
Set rst = dbs.OpenRecordset(strSQL)
It's not working (ie. not creating the table). I've checked that the strSQL
line is returning records by removing the INTO tblSicknessInAPeriodTemp from
the statement and records are returned. How do I get this code to create the
table?
Any help appreciated
Yours
Paul
I
I'm trying to create a table via some SQL in a module. I'm not very good at
this, so need some help.
myservice = "Resources Service Area"
strSQL = "SELECT * FROM tblSicknessInAPeriod INTO tblSicknessInAPeriodtemp
WHERE [LastOfService] = '" & myservice & "'"
Set rst = dbs.OpenRecordset(strSQL)
It's not working (ie. not creating the table). I've checked that the strSQL
line is returning records by removing the INTO tblSicknessInAPeriodTemp from
the statement and records are returned. How do I get this code to create the
table?
Any help appreciated
Yours
Paul
I