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
Refresh contents of a list box displayed on form, using VBA
Need user to create and alter tables, but not have dbo_owner access
Setting up Custom Error Pages in Windows Sharepoint Services. WSS
Ping from (192.168.1.1 - 192.168.1.254) without using IPlist.txt and output the result with Hostnames..
Adding Formatting to GridView Export To Excel
problem with VBA code to operate command on sub-form
Subforms and bookmarks
constant scan in execution plan
issue with Global Catalog
limit for ms sql