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 May 18th, 2007, 08:32 PM
JEA JEA is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 22 JEA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 12 m 26 sec
Reputation Power: 0
Smile VBA Question

I'm VERY new to VBA so please bear with me. I am working in a database that has tab controls with check boxes. I am trying to force the user to check at least one of the controls. If they don't, they can't move on to the next panel where it will require them to do the same on this tab control and so on and so on. Once they have made at least one choice in each tab control, they can then exit the form. Any ideas would really help. Thanks

Reply With Quote
  #2  
Old June 4th, 2007, 08:46 PM
Lauramc's Avatar
Lauramc Lauramc is offline
SQL Slarentice
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2004
Location: In My Happy Place
Posts: 1,810 Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 20 h 24 m 30 sec
Reputation Power: 1143
Quote:
Originally Posted by JEA
I'm VERY new to VBA so please bear with me. I am working in a database that has tab controls with check boxes. I am trying to force the user to check at least one of the controls. If they don't, they can't move on to the next panel where it will require them to do the same on this tab control and so on and so on. Once they have made at least one choice in each tab control, they can then exit the form. Any ideas would really help. Thanks


Well, I wonder if you can disallow changing tabs until a box is checked on the active tab? Could you just set the tab's enabled property to false until a box is checked? How many tabs do you have? Do they have to be accessed and checked in a certain order?

Reply With Quote
  #3  
Old June 16th, 2007, 03:33 PM
jadkins jadkins is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 1 jadkins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 0
Quote:
Originally Posted by JEA
I'm VERY new to VBA so please bear with me. I am working in a database that has tab controls with check boxes. I am trying to force the user to check at least one of the controls. If they don't, they can't move on to the next panel where it will require them to do the same on this tab control and so on and so on. Once they have made at least one choice in each tab control, they can then exit the form. Any ideas would really help. Thanks


This will do what you are looking for, however if someone checks the box and then unchecked it they will still be able to move on. You can easily change the code so that it will re hide the tab but if you are using more then one check box you will need to loop thru the controls to set every time one isunchecks to see if all of the boxes = false You will also want to set the vi sable property of tab 2 to false in design mode so that the tab is not visable when the form loads you can also do this in the form_load event in VBA if you would rather do it all in code.


Private Sub Check1_Click()

If Check1.Value = True Then
If Page2.Visible = False Then
Page2.Visible = True
End If
End If



End Sub

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > VBA Question


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 5 hosted by Hostway
Stay green...Green IT