Results 1 to 6 of 6
  1. #1
    bursteffect is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Location
    arkansas
    Posts
    6

    Question Radio and check boxes

    im working on a transportation database, and i need a few pointers . in my form i have clients that will be going to the doctor, so i have a pickup address, time, city ,zip,phone ect. going to a destination address, time,city , zip ect. which is counted as one trip. i want to create a button, or checkbox that will when checked, will add another leg to the destination just incase the client decides to want an additional trip. who knows maybe she want to go 6 places. is there a way this can be done.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    What do you mean by 'add another leg'? You want to add a record in table?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bursteffect is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Location
    arkansas
    Posts
    6
    Quote Originally Posted by June7 View Post
    What do you mean by 'add another leg'? You want to add a record in table?

    no i want to be able to enable and disable fields.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Code can enable/disable controls on form. How will that 'add another leg'? What is data structure? Do you have similar fields in table for up to 6 'legs'?

    Want to provide db for analysis? Follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    bursteffect is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Location
    arkansas
    Posts
    6
    when you open the database, i hope you can understand what im trying to do, im not good in explaining things, i have 3 check boxes which is for each destination, i want to be able to checkmark only the destination i want to use and disable the other ones, until i need them. if all is checked all is enabled .
    Attached Files Attached Files

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Set the Visible or Enabled property of controls to No. Then use code (macros or VBA, I use only VBA) to reverse the property setting. Code must be in some event, such as checkbox Change event. Example:

    Me.SITE_DESTINATION2.Visible = True
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Check Boxes
    By manic in forum Programming
    Replies: 5
    Last Post: 06-26-2012, 09:18 AM
  2. Check Boxes
    By jordanturner in forum Access
    Replies: 1
    Last Post: 10-01-2010, 09:29 AM
  3. To check or Un-Check all Boxes in a form
    By devcon in forum Forms
    Replies: 7
    Last Post: 05-01-2010, 12:03 AM
  4. Un-Check all Boxes
    By cotri in forum Forms
    Replies: 4
    Last Post: 04-30-2010, 12:53 PM
  5. check boxes
    By chiefmsb in forum Forms
    Replies: 1
    Last Post: 11-14-2006, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums