.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 13th, 2008, 09:19 PM
mikoschumi mikoschumi is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 14 mikoschumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 26 m 37 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 13th, 2008, 10:20 PM
ngaisteve1's Avatar
ngaisteve1 ngaisteve1 is offline
ASP Free Member
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2004
Location: Kuala Lumpur, Malaysia (Boleh!)
Posts: 749 ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level)ngaisteve1 User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 27 m 7 sec
Reputation Power: 684
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.)

Reply With Quote
  #3  
Old August 14th, 2008, 07:50 PM
mikoschumi mikoschumi is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 14 mikoschumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 26 m 37 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > How to filter a combo box?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT