i want to display my data that only has the same "gender" to the datagrid.
Expand|Select|Wrap|Line Numbers
- Dim rs6 As New ADODB.Recordset
- With rs6
- .ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Dbname & ";Persist Security Info=False"
- .CursorLocation = adUseClient
- .LockType = adLockOptimistic
- .CursorType = adOpenStatic
- .Source = "SELECT * FROM Data WHERE Gender = '" & comboGender.Text & "'"
- .Open
- dgData.Columns(0).Value = .Fields(0).Value
- dgData.Columns(1).Value = .Fields(1).Value
what code that i miss?
thanks in advance.. =)