Append Query with new values (1 Viewer)

FrostByte

Registered User.
Local time
Today, 03:54
Joined
Jan 15, 2015
Messages
56
Hi,

I have a form which gives me my outstanding ledger to which I can make payments against and creates a payment basket (which has a unique reference) in a temp table prior to posting.

What I want to do is run an append query that appends an exact copy of all records relating to that basket apart from a few key fields which I want to give new values (based on a field in the form).

Any help would be appreciated.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 10:54
Joined
May 7, 2009
Messages
19,228
just specify in the query the control name on the form to insert:
Code:
Insert Into TableName (Field1, Field2, Field3 [, FieldX]) 
SELECT [Forms]![FormName]![ControlName], Field2FromTempTable, Field3FromTempTable [, FieldXFromTempTable]
FROM TempTable;
 

FrostByte

Registered User.
Local time
Today, 03:54
Joined
Jan 15, 2015
Messages
56
just specify in the query the control name on the form to insert:
Code:
Insert Into TableName (Field1, Field2, Field3 [, FieldX]) 
SELECT [Forms]![FormName]![ControlName], Field2FromTempTable, Field3FromTempTable [, FieldXFromTempTable]
FROM TempTable;

Hi arnelgp,

Sorry for the delayed response. Thats fab, ill be trying it this week. Much appreciated.
 

Users who are viewing this thread

Top Bottom