Results 1 to 4 of 4
  1. #1
    vicrob6 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    2

    Question Auto Entering Form with a button

    I am sort of new to Access, and i don't know what the code line for a button to auto check boolean fields in a form.



    For some perspective, it is a database for a Pizza Company(hypothetical, just for practice) and i have an orders Form, i have about 15 ingredients that have a boolean data type, i want to make it so they can choose their own ingredients or can click a button on the side that auto chooses ingredients, e.g a Margherita pizza button that automatically ticks, cheese, basil and tomato. I don't know what the programming for the button would be and i need help, this database is due in 3 days

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If you have a yes/no field for each ingredient, that is not a normalized data structure. Is this the design required by the assignment?

    The code you are looking for would be like:

    Me.Cheese = True
    Me.Basil = True
    Me.Tomato = 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.

  3. #3
    vicrob6 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    2
    Quote Originally Posted by June7 View Post

    Me.Cheese = True
    Me.Basil = True
    Me.Tomato = True
    What type of button would that be for?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    A command button - the click event.
    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. Replies: 3
    Last Post: 04-23-2014, 10:08 PM
  2. Replies: 15
    Last Post: 01-13-2014, 11:54 AM
  3. Botton Colors
    By tcheck in forum Access
    Replies: 1
    Last Post: 05-22-2013, 07:50 AM
  4. The Refresh Botton
    By djclntn in forum Forms
    Replies: 16
    Last Post: 11-04-2012, 06:20 PM
  5. Replies: 1
    Last Post: 08-17-2011, 11:13 AM

Tags for this Thread

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