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
how big can a database be?
SMS 2003 Management Point error Message ID 5436
how to keep the session variable alive until the user close the browser?
Export DatagridView or DataSet as CSV File
Null Date in Databinder.Eval(Container.<wbr />DataItem, "decom")
Import SQL 2005 database example into SQL 2008
A configuration error in the e-mail system caused the message to bounce between two servers or to be forwarded between two recipients
Open a form and populate an unbound field on the form being opened
macro vlookup error
How to select records from tblA that do not exist in tblB ?