[Quoted Text] > 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 >
Maybe I'm missing something or you mistyped something...
but the way to show one thing (e.g. "VAD") and query for another (362) is to create a combobox with 2 columns and to hide the one containing the value. then point your query at the form...
SELECT... FROM... WHERE tblCwCPTypes.Type=Forms!MyFormName!cboCwCpType;
|