PC Review


Reply
Thread Tools Rate Thread

Copy current record to report form

 
 
Stockwell43
Guest
Posts: n/a
 
      14th Nov 2008
Hello,

I created a form in access 2003. I copied the fields and placed them in the
report detail section. Now in design view of the report, the checkboxes are
checked but when I flip it in regular view the boxes are emptied (currently I
have the table of being the record source).

What I want to accomplish is this:

When the user fills out the form, they click add record to save it and it is
stored, easy enough. I want to be able to pull up the form in the report that
I created and click a button and have the fields from the current record fill
in the fields on the report just in case management wants a printed copy.

I am doing this because we need this form in order to make changes and
create new items and instead of keeping them in a folder and have more paper
around, the user can just send me and email from the database saying they
entered a request and then I would go in and view it. This way, they are all
stored in the database with no paper or folders. However, as mentioned above
if the manager wants a printed copy, I need a way to print it. If this can be
done, any help would be greatly appreciated.

Thank you to all!!!!
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      14th Nov 2008
To print the current record, you can create a button and add code like:

Sub cmdPrintMe_Click()
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenReport "YourReportName",,,"IDField=" & Me.txtIDField
End Sub

where cmdPrintMe is the name of your button, IDField is the primary Key in
the underlying table, and txtIDField is the name of the textbox on your form
which displays the prmary key field.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Stockwell43" <(E-Mail Removed)> wrote in message
news:C3E816B1-84ED-473E-9153-(E-Mail Removed)...
> Hello,
>
> I created a form in access 2003. I copied the fields and placed them in
> the
> report detail section. Now in design view of the report, the checkboxes
> are
> checked but when I flip it in regular view the boxes are emptied
> (currently I
> have the table of being the record source).
>
> What I want to accomplish is this:
>
> When the user fills out the form, they click add record to save it and it
> is
> stored, easy enough. I want to be able to pull up the form in the report
> that
> I created and click a button and have the fields from the current record
> fill
> in the fields on the report just in case management wants a printed copy.
>
> I am doing this because we need this form in order to make changes and
> create new items and instead of keeping them in a folder and have more
> paper
> around, the user can just send me and email from the database saying they
> entered a request and then I would go in and view it. This way, they are
> all
> stored in the database with no paper or folders. However, as mentioned
> above
> if the manager wants a printed copy, I need a way to print it. If this can
> be
> done, any help would be greatly appreciated.
>
> Thank you to all!!!!



 
Reply With Quote
 
Stockwell43
Guest
Posts: n/a
 
      14th Nov 2008
Hi Arvin!

Thank you for your reply.

Works like a charm and was easier than I thought. Thank you for also going
so far as to explain what each field represented, took the guess work out.

Thank you again and as always your help is much appreciated!!!

"Arvin Meyer [MVP]" wrote:

> To print the current record, you can create a button and add code like:
>
> Sub cmdPrintMe_Click()
> DoCmd.RunCommand acCmdSaveRecord
> DoCmd.OpenReport "YourReportName",,,"IDField=" & Me.txtIDField
> End Sub
>
> where cmdPrintMe is the name of your button, IDField is the primary Key in
> the underlying table, and txtIDField is the name of the textbox on your form
> which displays the prmary key field.
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "Stockwell43" <(E-Mail Removed)> wrote in message
> news:C3E816B1-84ED-473E-9153-(E-Mail Removed)...
> > Hello,
> >
> > I created a form in access 2003. I copied the fields and placed them in
> > the
> > report detail section. Now in design view of the report, the checkboxes
> > are
> > checked but when I flip it in regular view the boxes are emptied
> > (currently I
> > have the table of being the record source).
> >
> > What I want to accomplish is this:
> >
> > When the user fills out the form, they click add record to save it and it
> > is
> > stored, easy enough. I want to be able to pull up the form in the report
> > that
> > I created and click a button and have the fields from the current record
> > fill
> > in the fields on the report just in case management wants a printed copy.
> >
> > I am doing this because we need this form in order to make changes and
> > create new items and instead of keeping them in a folder and have more
> > paper
> > around, the user can just send me and email from the database saying they
> > entered a request and then I would go in and view it. This way, they are
> > all
> > stored in the database with no paper or folders. However, as mentioned
> > above
> > if the manager wants a printed copy, I need a way to print it. If this can
> > be
> > done, any help would be greatly appreciated.
> >
> > Thank you to all!!!!

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have report show current record on form David K. Microsoft Access Reports 2 24th Mar 2009 09:29 PM
Printing Current Record in a Form as a Report =?Utf-8?B?TGlsQm9tU2hs?= Microsoft Access Reports 4 24th Apr 2007 10:26 PM
Printing current record on a report from a form Snedden Microsoft Access Forms 14 14th Apr 2007 06:35 PM
Open a current record report from a form? =?Utf-8?B?Um9zZQ==?= Microsoft Access Forms 1 31st Oct 2006 04:48 PM
Preview report of only current record on form =?Utf-8?B?YmFtYmFt?= Microsoft Access Reports 1 13th Mar 2006 01:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 AM.