+ Reply to Thread
Results 1 to 2 of 2

Disable submit button based on class availability

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    40

    Disable submit button based on class availability

    I am trying to stop users from registering for class when no slots are available. Records are added via an excel userform into a access table. The user selects a class from the combobox and submits. That works fine. I have query that tracks the number of slots available for each class. How can I tie both together to prevent the users from submitting the record when no slots is available? My vision was once a selection was made and no slots available for that class was to disable the submit button.

    Thanks in advance.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Disable submit button based on class availability

    the combo box can have 2 columns from the query: ClassName, SlotsRemain
    then:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA to hide or disable a form control button based on cell value
    By npsnps in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-11-2017, 06:40 AM
  2. [SOLVED] Disable a command button yet enable it based on other conditions
    By chin67326 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-23-2015, 08:37 AM
  3. [SOLVED] Enable Disable spin button based on a textbox
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2015, 07:21 AM
  4. Replies: 1
    Last Post: 02-05-2012, 09:31 PM
  5. How to Enable/Disable the Option Button(s) based on different ComboBox Values?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2011, 04:32 PM
  6. disable save and saveas but have submit button to save file as work
    By briant97 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2010, 12:32 PM
  7. Create a Submit button save filename as A1, submit email unc path, etc.
    By briant97 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2009, 09:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1