Results 1 to 7 of 7
  1. #1
    dcecil is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    12

    Question Emailing forms or reports

    I am using Access 2003 and I have a button that pops open a form showiing the contents of 1 record (where the button resides), but I want to then make a "Send" button on the form that will send out by email. Can I do this or does it have to be a Report? If it has to be a report, how do I limit the report to that one record that is shown on the form only?



    Thanks,
    Dave

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  3. #3
    dcecil is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    12
    Sorry, I should have said that I wasn't a "coder". I have fiddled around enough to be dangerous, but sometimes the coding gives me a problem. In which function of the form do I put the code? Also which parts are ones that I substitute for mine? I see that "rptSomeReport" would be the name of my report, but what exactly is RunID and me!RunID? Are these functions found in Access or something I substitute? If there is a way to do what I want with Macros or anything other than code, that would be easier for me. Any help is greatly appreciated!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do each of your records have a unique ID such as a Primary Key? That is what the link means by RunID.

  5. #5
    dcecil is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    12

    A little more info please

    Okay, but what is the "& Me!RunID"? Is there anything I need to change in that string?

    Thanks

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    YES! That needs to point to your uniqueID control or field.

  7. #7
    dcecil is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    12

    Now there's something else!

    Okay, I finally got the code to work. Thanks to you guys. I only have the one record info listed in the report. Now something else arose. On the form where the one record is listed, I have a combo box, using a value list. When I select a name from the list and press the button to product the report, the name selected from the combo box is not shown. On the other hand, on the form when I select the name and roll the wheel on the mouse down (everthing disappears) and roll it back up (everything is back), when I press the report button, the name appears on the report.

    Any Ideas?

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

Similar Threads

  1. Using Public variables between forms/queries/reports
    By dcrake in forum Sample Databases
    Replies: 2
    Last Post: 12-25-2015, 05:44 PM
  2. Emailing a form
    By bailey537 in forum Programming
    Replies: 0
    Last Post: 07-16-2009, 03:45 AM
  3. Replies: 0
    Last Post: 03-17-2009, 11:25 AM
  4. Creating Watermark in Access Reports / Forms
    By Alex Motilal in forum Reports
    Replies: 0
    Last Post: 11-21-2008, 07:11 AM
  5. Replies: 1
    Last Post: 01-22-2008, 03:36 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