Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access 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:
  #1  
Old January 26th, 2004, 05:55 AM
Steven222 Steven222 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 Steven222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
VBA Access

Private Sub ItemID_Exit(Cancel As Integer)
'work out description
Select Case ItemInfoType
Case Forms![frmNewStock].ItemID = "WCJ*"
ItemDescription = "WheelChair - Junior"
Case Forms![frmNewStock].ItemID = "WCS*"
ItemDescription = "WheelChair - Small"
End Select

Can anybody see anything wrong with this? I want it so that when i type something such as WCJ 01, or WCS 01, it recognizes it and enters the item description. Currently what ever i type it just enters the item description as WheelChair - Junior.

Reply With Quote
  #2  
Old August 5th, 2004, 05:32 AM
sherrington sherrington is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 85 sherrington User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 4 m 52 sec
Reputation Power: 5
ItemType = left$(Forms!frmNewStock.ItemID, 3)
select case ItemType
case "WCJ"
ItemDescription = "WheelChair - Junior"
case "WCS"
ItemDescription = "WheelChair - Small"
end select

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > VBA Access


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 4 hosted by Hostway