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
Server Monitoring via Email
Vista can't modify files (Access Denied)
How to automate Access Report Save process (in multiple formats)
DoCmd.OutputTo - runtime error 30016 the field 'id' is read only
SharePoint (WSS 3) access via UNC path
Access 2007 and PDF
Lock down website usine web.config file
Transpose Columns Names with Data
Unable to install nVidia Display driver
Any way to move a hyper v guest from one hyperv host to another?