M
Masoud
In my code, I used openrecordset for opening parameter query like below but
it has error. Value of my parameter there is in my open form that manually
when I open this parameter query this works.
Set MyDB = CurrentDb
Set MyRS = MyDB.OpenRecordset("qryCcmaillisttranstocon").
Sql of this This parameter query is like below :
SELECT tbltransCc.TRANSMITtoCon, tbltransCc.CC, tbltransCc.Copies,
tblCc.CcAddress
FROM tblCc INNER JOIN tbltransCc ON tblCc.Cc = tbltransCc.CC
WHERE (((tbltransCc.TRANSMITtoCon)=[Forms]![frmTranstoCon]![TRANSMITtoCon]));
Please help.
it has error. Value of my parameter there is in my open form that manually
when I open this parameter query this works.
Set MyDB = CurrentDb
Set MyRS = MyDB.OpenRecordset("qryCcmaillisttranstocon").
Sql of this This parameter query is like below :
SELECT tbltransCc.TRANSMITtoCon, tbltransCc.CC, tbltransCc.Copies,
tblCc.CcAddress
FROM tblCc INNER JOIN tbltransCc ON tblCc.Cc = tbltransCc.CC
WHERE (((tbltransCc.TRANSMITtoCon)=[Forms]![frmTranstoCon]![TRANSMITtoCon]));
Please help.