Good day.
I just need a little help in creating a query design or code. I have 3 tables (tranhead, trandetail, accountmaster) with the following fields below. I have a requirement where the user will enter a search and the query should look on 3 tables below and compare if the search criteria matches on below fields with red color. If there is a match the query should return whatever rows that matches in trandetail table. I have attached the database for reference. Thank you for helping.
tranhead fields - accountno
- accntname
trandetail fields - tranno
- accountno
- debit
- credit
- remarks
- slno
accountmaster fields - tranno
- trandate
- docno
- ....
- ....
- remarks