J
JP
I have a form from which an append query can be triggered.
Two of the fields serve as inputs for the query.It works
fine but when I tried to add another unbound text box to
also serve as parameters for the append query it stops
working. I don't know SQL very well so this was done in
query design:
INSERT INTO tblContract ( ContractID, SubContract, RepID,
CType, CTypeInv,)
SELECT tblSubContracts.ContractID,
tblSubContracts.SubContract, tblContract.RepID,
tblContract.CType, tblContract.CTypeInv
FROM tblContract INNER JOIN tblSubContracts ON
tblContract.ContractID = tblSubContracts.SubContract
WHERE (((tblSubContracts.ContractID)=[Forms]!
[frmSubContracts]![ContractID]) AND
((tblSubContracts.SubContract)=[Forms]![frmSubContracts]!
[SubContract])) AND ((tblContract.RepID)=[Forms]!
[frmSubContracts]![txtRepID]));
Two of the fields serve as inputs for the query.It works
fine but when I tried to add another unbound text box to
also serve as parameters for the append query it stops
working. I don't know SQL very well so this was done in
query design:
INSERT INTO tblContract ( ContractID, SubContract, RepID,
CType, CTypeInv,)
SELECT tblSubContracts.ContractID,
tblSubContracts.SubContract, tblContract.RepID,
tblContract.CType, tblContract.CTypeInv
FROM tblContract INNER JOIN tblSubContracts ON
tblContract.ContractID = tblSubContracts.SubContract
WHERE (((tblSubContracts.ContractID)=[Forms]!
[frmSubContracts]![ContractID]) AND
((tblSubContracts.SubContract)=[Forms]![frmSubContracts]!
[SubContract])) AND ((tblContract.RepID)=[Forms]!
[frmSubContracts]![txtRepID]));