Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

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 March 31st, 2005, 12:32 PM
paulxmw paulxmw is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 7 paulxmw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 34 m 8 sec
Reputation Power: 0
Question visible invible cannot get it to start but does work

Hi can anyone help. I have the following code working in a form
it does work but only when I move the counter along manualy.
On the database I developed we use a combo box to look up
account numbers I.e we type in the account number into the
combo box and press return, it then brings up the details we need
the trouble is that some screens have so many fields people get
confused with the data displaid. the text below cuts out some of
the irelivent data but like I said we have to either click into the
(type) box or move the counter along then back a digit. is there
anyone who can help me make it automaticaly

private Sub type_Enter()
If Me![type] = "featurenet" Then
Me![source1].Visible = True
Me![source2].Visible = False
End If
If Me![type] = "caretaker" Then
Me![source1].Visible = False
Me![source2].Visible = True
End If

End Sub

Thanks

Reply With Quote
  #2  
Old March 31st, 2005, 12:47 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,760 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 5 h 22 m 16 sec
Reputation Power: 443
Try something like this
Code:
Private Sub type_Enter()
   If Me![type] = "featurenet" Then
      Me![source1].Visible = True
      Me![source2].Visible = False
   ElseIf Me![type] = "caretaker" Then
      Me![source1].Visible = False
      Me![source2].Visible = True
   End If
End Sub
Comments on this post
paulxmw disagrees: sorted my problem in 5 minuets THANKS

Reply With Quote
  #3  
Old March 31st, 2005, 01:22 PM
paulxmw paulxmw is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 7 paulxmw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 34 m 8 sec
Reputation Power: 0
Smile sorted thanks

Hi and thanks for your help all my problems are now sorted
(for now)
Thanks

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > visible invible cannot get it to start but does work


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