C
cw via AccessMonster.com
I have a Form that prompts for selected information and an OK button that
opens this query:
SELECT tblCPVDSL.ID, tblCPVDSL.DslID, tblCPVDSL.ActiveID, tblCPVDSL.
ResoldVoiceTypeID, tblCPVDSL.Acct, tblCPVDSL.VpVciDlci, tblCPVDSL.
CustomerName, tblCPVDSL.Phone, tblCPVDSL.CKTID, tblCPVDSL.LATA, tblCPVDSL.
InstallDate, tblCPVDSL.Order, tblCPVDSL.CWCPtypeID, tblCPVDSL.dtmAdded,
tblCPVDSL.strModifiedBy, tblCPVDSL.dtmModified, tblCPVDSL.Notes, tblCPVDSL.
SARDate, tblCPVDSL.SARTime, tblCwCpTypes.Type, tblCwCpTypes.Description
FROM tblCPVDSL INNER JOIN tblCwCpTypes ON tblCPVDSL.CWCPtypeID = tblCwCpTypes.
CWCPtypeID
WHERE (((tblCPVDSL.CustomerName) Is Null) AND ((tblCwCpTypes.Type)="VAD"));
I have added a Text Box to my form called LATA and its values will always be
362 or 978.
How do I make my query reference this field on my form and change the WHERE
clause?
1) If the Value = 362 then (tblCwCpTypes.Type)="VAD")
or
2) If the Value = 362 then (tblCwCpTypes.Type)="VFD")
Thanks for any help or ideas,
cw
opens this query:
SELECT tblCPVDSL.ID, tblCPVDSL.DslID, tblCPVDSL.ActiveID, tblCPVDSL.
ResoldVoiceTypeID, tblCPVDSL.Acct, tblCPVDSL.VpVciDlci, tblCPVDSL.
CustomerName, tblCPVDSL.Phone, tblCPVDSL.CKTID, tblCPVDSL.LATA, tblCPVDSL.
InstallDate, tblCPVDSL.Order, tblCPVDSL.CWCPtypeID, tblCPVDSL.dtmAdded,
tblCPVDSL.strModifiedBy, tblCPVDSL.dtmModified, tblCPVDSL.Notes, tblCPVDSL.
SARDate, tblCPVDSL.SARTime, tblCwCpTypes.Type, tblCwCpTypes.Description
FROM tblCPVDSL INNER JOIN tblCwCpTypes ON tblCPVDSL.CWCPtypeID = tblCwCpTypes.
CWCPtypeID
WHERE (((tblCPVDSL.CustomerName) Is Null) AND ((tblCwCpTypes.Type)="VAD"));
I have added a Text Box to my form called LATA and its values will always be
362 or 978.
How do I make my query reference this field on my form and change the WHERE
clause?
1) If the Value = 362 then (tblCwCpTypes.Type)="VAD")
or
2) If the Value = 362 then (tblCwCpTypes.Type)="VFD")
Thanks for any help or ideas,
cw