the erorr it gives me is:(syntax error FROM clause) from the adodc2
adodc2 on mine is for the datagrid
adodc1 is for the datalist
i tried this (my Code)
Expand|Select|Wrap|Line Numbers
- Private Sub DataList1_Click()
- Dim cstrsql As String
- cstrsql = "select * from customers " & " where orderID = " & " ' " & DataList1.BoundText & " ' "
- Adodc2.RecordSource = cstrsql
- Adodc2.Refresh
- End Sub
Expand|Select|Wrap|Line Numbers
- private sub dblname_click()
- dim pstrsql as string
- pstrsql = "select * from tblpayrolldetail " & " where fldemployeeid = " & " ' " & _
- dblname.boundtext & " ' "
- adpayrolldetail.recordsource = pstrsql
- adpayrolldetail.refresh
- end sub
payroll master ( for the datalist)
payroll detail ( for the datagrid)
I need to understand how i can apply this example in the book to a project im doing for me....
lee123