Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search Edit - Setting a "WHERE" clause based on value on the form

Status
Not open for further replies.

tdk88

Programmer
May 22, 2012
2
US
I'm currently working on a custom search on OE0101 (Enter Orders) that pulls a contact's first and last names (cicntp.cnt_f_name, cicntp.cnt_l_name), but want to limit it to only contacts for the selected customer. I have cicmpy included in the search, and my two tables are linked together by the cnt_id field.

In the "Where" box, I currently have "WHERE cicntp.cnt_f_name IS NOT NULL AND cicmpy.debcode = ?". I would like the cicmpy.debcode to be equal to the Customer.text value on the Macola ES form. Any ideas on how to set this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top