Click here to Skip to main content
15,897,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello sir/Madam
i have a 1 query regarding my project. my project is to keep record of inward and outward documents. in this i have only one table to keep record for inward and outward. but now i want 2 access the inward document on 1 form in the datagridview and the outward documents on another form. in this table the TransactionType field is available to identify document type. plz give me the answer.
Posted
Comments
Maciej Los 12-Oct-12 16:16pm    
What problem exactly do you have?
What have you done till now?

1 solution

To get only inward documents:
SQL
SELECT *
FROM Documents
WHERE TransactionType = Inward

To get only outward documents:
SQL
SELECT *
FROM Documents
WHERE TransactionType = Outward


How to fetch data? Use ADO.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900