Results 1 to 2 of 2
  1. #1
    Lxmanager is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    24

    Check boxes and email

    Hi guys, I'm new to this site and to Access programming so please be gentle with me.. I have a couple of questions, well actually I have dozens of them but a couple will do for now.



    I am creating an Access database in work to record and analyze inspection data. So far I have created the necessary tables, forms and some reports/queries.

    The problem I am having is on the main form, I have created the form so the inspection can enter the required data to be stored within a table. On the bottom of the form I have departmental people who the form has to be given, at the moment I have check boxes against each one so when clicked enters the word yes in the table and enters it within the field on the report. What I have been asked is can I add say a button on the form so as when the operator has checked the required names on the form he can click on the button and the form or associated report will be sent to Microsoft outlook as an attachment with the email addresses already in the send to field of the email. if it is possible could someone please explain how to do it and possibly show me the VBA code to go with it.

    My second problem is on the same form I have created a button to send the form to a record, hopefully to show it in print preview ready for printing. It does that but the report has all the records created whereas I only want the one that was open in the form i.e. if record 105 was open in the form I only want that one in the report stopping the chance of accidently printing all 105 records. How do I achieve this.

    Sorry my first post has been so long winded, my Access design is basic and my VBA programming is none existent, but I am learning.

    Thanks for your help in advance.

    Andy

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Here is the way MS views the task: http://support.microsoft.com/kb/161088

    The code can pretty much be copied verbatim from that site and used in any office program. Give it a whirl and see how you get on.

    As a side note, your table might be a little too big if all of the info you've mentioned is on the same form, which is bound to the same table. If you can, try splitting up your data based on information groups and JOIN them together in a query. That's the purpose of Access.

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

Similar Threads

  1. Yes/No check boxes
    By Desstro in forum Forms
    Replies: 2
    Last Post: 05-03-2010, 04:26 AM
  2. 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
  3. Un-Check all Boxes
    By cotri in forum Forms
    Replies: 4
    Last Post: 04-30-2010, 12:53 PM
  4. VBA check for email subject line
    By problem_addic in forum Access
    Replies: 4
    Last Post: 03-12-2010, 02:33 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