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!

filtering /w query

Status
Not open for further replies.

wshm

Programmer
Dec 7, 2006
62
US
I have a continuous form "frm_DeptBudget" (tbl_DeptBudget)
when user clicks a textbox, i want another
continuous form to open. That new form "frm_BudDetail"
should only show the record which consist of same
'txtDeptBudNo'. (tbl_deptBudget and tbl_budDetail share that key)

I figured the easiest way is using a query.

SELECT tbl_DeptBudTxDetail.DeptBudNo
FROM tbl_DeptBudTxDetail
WHERE (((tbl_DeptBudTxDetail.DeptBudNo)=[forms]![frm_DeptBudget]![txtDeptBudNo]));

Problem is, it's lising every record on the table.
no filtering what so ever.

any help?
 
nm. stupid me.
i forgot to " the filter in vba..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top