![]() |
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
Do each of your records have a unique ID such as a Primary Key? That is what the link means by RunID.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
#5
|
|||
|
|||
|
Okay, but what is the "& Me!RunID"? Is there anything I need to change in that string?
Thanks |
|
#6
|
||||
|
||||
|
YES! That needs to point to your uniqueID control or field.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
#7
|
|||
|
|||
|
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? |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Public variables between forms/queries/reports | dcrake | Sample Databases | 1 | 02-11-2010 08:10 PM |
| Emailing a form | bailey537 | Programming | 0 | 07-16-2009 01:45 AM |
| Changing height size in forms and reports | 4ABs | Forms | 0 | 03-17-2009 09:25 AM |
| Creating Watermark in Access Reports / Forms | Alex Motilal | Reports | 0 | 11-21-2008 04:11 AM |
| Need formulas in Forms to carry over to Reports...? | ottcem | Reports | 1 | 01-22-2008 12:36 PM |