Geoff Codd
Registered User.
- Local time
- Today, 20:23
- Joined
- Mar 6, 2002
- Messages
- 190
Hi there,
I'm trying to get the following to work but i'm having syntax problems
DoCmd.RunSQL ("INSERT INTO [tblSatchwell_Trend_Logs_(Data)] ( Point_ID, [Date], [Time], Reading )" _
& "SELECT Points.Id AS Point_ID, [tblSatchwell_Trend_Logs_(Temp)].Date, [tblSatchwell_Trend_Logs_(Temp)].Time, [tblSatchwell_Trend_Logs_(Temp)].Value AS Reading " _
& "FROM [tblSatchwell_Trend_Logs_(Temp)] INNER JOIN Points ON [tblSatchwell_Trend_Logs_(Temp)].Mnemonic = Points.Import_Link_Code_Profile" _
& "ORDER BY Points.Id, [tblSatchwell_Trend_Logs_(Temp)].Date, [tblSatchwell_Trend_Logs_(Temp)].Time;")
any help would be appreciated
Thanks
Geoff
I'm trying to get the following to work but i'm having syntax problems
DoCmd.RunSQL ("INSERT INTO [tblSatchwell_Trend_Logs_(Data)] ( Point_ID, [Date], [Time], Reading )" _
& "SELECT Points.Id AS Point_ID, [tblSatchwell_Trend_Logs_(Temp)].Date, [tblSatchwell_Trend_Logs_(Temp)].Time, [tblSatchwell_Trend_Logs_(Temp)].Value AS Reading " _
& "FROM [tblSatchwell_Trend_Logs_(Temp)] INNER JOIN Points ON [tblSatchwell_Trend_Logs_(Temp)].Mnemonic = Points.Import_Link_Code_Profile" _
& "ORDER BY Points.Id, [tblSatchwell_Trend_Logs_(Temp)].Date, [tblSatchwell_Trend_Logs_(Temp)].Time;")
any help would be appreciated
Thanks
Geoff