Hii all,
How to join two tables and a combobox value??
i have 2 combo boxes and 2 tables
i have aquery:
1)
Dim myselectquery As String = "SELECT pr_project_id_pk FROM tbl_projects WHERE tbl_projects.pr_project_location= ?SName"
cmSQL.Parameters.Add("?SName", objListItem.ToString)
and another query:
2)
Dim myselectquerya As String = "SELECT sta_category_id_fk FROM tbl_staff_assignments WHERE sta_project_id_fk=tbl_projects.pr_project_id_pk"
If sta_category_id_fk = 1 Then
MessageBox.Show("Already Available")
Else
Insert record
End If
now my doubt is: i need to join these two queries using joins....???? can u plz help me?
thnx in advance
hepsi..