Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2017
    Posts
    2

    Buttons

    Good day.

    Hope any one can help me. I am designing a program to use on the farm. It is very important to simplify your data basis due to the fact that we are working with illiterate people. I want to create a data basis where I use picture buttons that they can click on and that button will then write the information into a table from which I can then create a query to extract the rest of the data.

    For example an image of the driver. If he clicks on himself the program will write his name and surname into the table. Then he can click on his sprayer and tractor and it will write the information in die table as for the weather conditions, farm name and block.

    Is something like this possible??



    Lizelle

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    save any clip art to your pc you needed (google, etc)
    edit the image in Paint, and save as BMP (24 bit bitmap)
    shrink it so its about 28x28 (icon size)

    put a button on the form,
    in the button property, format tab, click the property row for PICTURE,
    click the ellipsis button on the far right of the property
    choose an icon given or use your custom icon by clicking BROWSE,
    choose your image. (be sure to set the file type to BMP)

  3. #3
    Join Date
    Sep 2017
    Posts
    2
    How do you program that button to write the information assigned to that button into the required field of a specific table?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    either macros or vb. (you can do a LOT with macros and not know programming)

    you should lookup these items in an Access book. They are fundamentals of the app.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Start with a review of https://support.office.com/en-us/art...0-DAB7C75CBE0C

    For one method, form is bound to table and focus is on existing record or the New Record row. Then code writes data directly to field.

    So if button has a tractor image, code in the button Click event to set field value. VBA example:

    Me!Equipment = "tractor"

    Another approach on an UNBOUND form would write records to tables using INSERT sql actions.

    Regardless, having buttons for each piece of equipment and each driver and other inputs will mean a LOT of buttons. Have to modify the form every time a driver quits or is hired.

    An alternative might be to have tables for each data entity with images in attachment field. Have forms bound to these 'lookup' tables with images displayed in Image control. User clicks record and code saves data to a data table. It's using an entire form like a combo or list box because images can't display in combo or list box lists.
    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: 2
    Last Post: 04-22-2017, 04:31 PM
  2. Replies: 4
    Last Post: 01-20-2017, 08:16 AM
  3. Replies: 1
    Last Post: 08-15-2013, 08:12 PM
  4. Replies: 10
    Last Post: 09-18-2012, 02:00 PM
  5. Buttons
    By dunnmel4 in forum Access
    Replies: 1
    Last Post: 04-07-2011, 12:27 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