Microsoft
Software
Hardware
Network
Question : Microsoft Access Module - Append table to another
I have used this in a module
With DoCmd
.RunSQL "INSERT INTO Table2 SELECT * FROM Table1"
End With
and it takes everything from table 1 and puts it in table2.
How do I go about this if the fields are named differently
Table1 field is called Status and i want to put this field in Table2 called daytimeStatus
I am not sure on how to put the names.
Answer : Microsoft Access Module - Append table to another
Hello Pdeters,
Something like this:
With DoCmd
.RunSQL "INSERT INTO Table2 (Field1, Field2, Field3) SELECT FieldA, FieldB, FieldC FROM Table1"
End With
Regards,
Patrick
Random Solutions
avoid execution of javascript on postback with updatepanel and timer
Macro not available to button properties
Underlining spaces
Access 2007 Runtime - what happens if openend on on computer with 2003
Converting datetime of the format MM/dd/yyyy HH:mm:ss.fff to yyyy-MM-dd HH:mm:ss.fff in asp.net C#
Select Statement with Function
Win7/ VS 2010 / SQL 2008 Express OK for dev platform
Excel/VBA - Programmatically changing DialogSheet titles
2 node cluster won't failover to one node
Create accdr runtime without msi executable