Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 19th, 2005, 12:17 AM
smith33 smith33 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 1 smith33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 38 sec
Reputation Power: 0
Help Please!!!

Hi I was wondering if anyone could tell me why my code doesn't work right. It goes straight to the Invalid Store Entry box.
Thanks for the help

Select Case UCase(strStore)
Case "All"
qtbSales.CommandText = "SELECT * FROM 2002sales ORDER BY store, month"

Case "Glen Park", "Jackson", "Warren"
qtbSales.CommandText = "SELECT * FROM 2002sales WHERE store = '" _
& strStore & "' ORDER BY month"

Case Else
MsgBox prompt:="Invalid store entry", Buttons:=vbOKOnly + vbInformation

Exit Sub
End Select

Reply With Quote
  #2  
Old June 21st, 2005, 03:10 PM
zombie_man23 zombie_man23 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 22 zombie_man23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 16 m
Reputation Power: 0
re

Put a breakpoint on the "Select Case UCase(strStore). Make sure that you are going to that function/routine correctly, and everything is going as planned.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Help Please!!!


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway