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
SQL Server 2008 - can't insert and see polish characters in SQL table
Receiving error when submitting data to SQL Server through asp.net vb
Replace Windows 2000 Server with 2003 server
Is there a way to export a SharePoint group to an excel file?
Infopath Multiple-Selection List Box: linked to access and list populated from Access table
Can I make Sharepoint sites or folders invisible to users without rights?
Moving an image along side the Mouse Pointer moves
microsoft access query criteria to retrieve specific records based on a reference number and part number
aspx vnbet dropdownlist client script
Access 2007 getting message "you do not have the necessary permissions to use"