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 to get the Drop down items of a ToolStripDropDownButton to remain open.
Make Table Query but save it in a New Database
Access List Box with Multiple Columns
Group sum calculated fields (which contain aggregate function) by group
If first character in string is zero, remove it
Simple Update Query
How to unshare Printers & Faxes and Scheduled Tasks
get data from a gridview to a popup window and then update the gridview
MS Access
Setting up MSDE 2000