codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Select Case for VBA in Excel  smith33 at 04:50 on Thursday, May 19, 2005
 

Hi 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








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo
•  Cookies and Threads C++
•  right justify a background in a table?
•  Help with Loop (C++/MFC)
•  Help with Loop (C++/MFC)


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007