|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to filter a combo box?
i made a form that filters data before printing..the problem is,when i select all employee,the combo box beside the all employee checkboc doesnt filter the data...the data inside the items of the combo box is Alphabetical,employee type,pay type and pay group..the rest of the combo boxes data is from the data base...here's my code:
If ComboBoxAll.Text = "Alphabetical" Then Employ += " AND last_name" ElseIf ComboBoxAll.Text = "Emp Type" Then Employ += " ORDER BY emp_type" ElseIf ComboBoxAll.Text = "Pay Group" Then Employ += " ORDER BY pay_group" ElseIf ComboBoxAll.Text = "Pay Type" Then Employ += " ORDER BY pay_type" End If Last edited by mikoschumi : August 13th, 2008 at 09:20 PM. Reason: add data |
|
#2
|
||||
|
||||
|
Have you tried to troubleshoot it? You can put a breakpoint at the code which execute this query and use the immediate window to copy and paste the variable which holds this query to see if that query is correct or not.
__________________
My homepage - www.findingsteve.net Greatest commandment - “Teacher, which is the greatest commandment in the Law?” Jesus replied: “ ‘Love the Lord your God with all your heart and with all your soul and with all your mind.’ This is the first and greatest commandment. And the second is like it: ‘Love your neighbor as yourself.’ ” Matthew 22: 36-40 (NIV, Bible) Progress - "Sedikit-sedikit, lama-lama menjadi bukit." (Literal translation: Bit by bit, in the end it becomes a hill.) |
|
#3
|
|||
|
|||
|
re:filter combo box
ive tried it...but it doesnt work....the combo box needs to filter the data by alphabetical,emp type,pay tpye and pay group...it should also be in alphabetical order when you sort it by emp type,pay type and pay group...thanks
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > How to filter a combo box? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|