A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Update a Report



 
 
Thread Tools Display Modes
  #1  
Old December 23rd, 2009, 07:56 PM posted to microsoft.public.access.forms
RMires
external usenet poster
 
Posts: 41
Default Update a Report

I have a command button that opens a report based upon a information in a
form. I want to be able to change the data on the record and update the
report without having to go to the next record and without having to manually
close the report.
  #2  
Old December 23rd, 2009, 08:07 PM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Update a Report

RMires,

Once you open the report it in essence becomes an image. You cannot
*refresh* it the traditional way. You have to close and reopen all which
can be accomplished in the After_Update event of the control you change.
Other then that there is no other way, that I am aware of, to do what you
want without closing/reopening the report.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"RMires" wrote in message
...
I have a command button that opens a report based upon a information in a
form. I want to be able to change the data on the record and update the
report without having to go to the next record and without having to
manually
close the report.



  #3  
Old December 23rd, 2009, 10:55 PM posted to microsoft.public.access.forms
Kunal Jariwala
external usenet poster
 
Posts: 14
Default Update a Report

Hi Mires,

I m havin trouble generating the report according to the 'JobID' specified
on the form through a click of the button... My Macro condition states tis
"[JobID]=[Forms]![QuoteForm]![JobID]" but tis dosent work... it prints all
the records...

Thanks.

Kunal.

"RMires" wrote:

I have a command button that opens a report based upon a information in a
form. I want to be able to change the data on the record and update the
report without having to go to the next record and without having to manually
close the report.

  #4  
Old December 23rd, 2009, 11:13 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Update a Report

On Wed, 23 Dec 2009 14:55:01 -0800, Kunal Jariwala
wrote:

Hi Mires,

I m havin trouble generating the report according to the 'JobID' specified
on the form through a click of the button... My Macro condition states tis
"[JobID]=[Forms]![QuoteForm]![JobID]" but tis dosent work... it prints all
the records...


Please post your actual code. What's the Recordsource of the report?
--

John W. Vinson [MVP]
  #5  
Old December 30th, 2009, 12:30 AM posted to microsoft.public.access.forms
Kunal Jariwala
external usenet poster
 
Posts: 14
Default Update a Report

Hello John,

My database have got 3 tables, they have no relationships. First table is
the one which captures all the main data off the form. 2nd & 3rd tables are
just to fillup the 'Combo Box'. A single form on which all the data are
entred and calculated.

So according to this scenario I think the best reply would be "the 1st Table
is the Record Source for the Report."

The Where Condition for the Macro is same as I informed in my earlier post
"[JobID]=[Forms]![QuoteForm]![JobID]".

Thanks.

Kunal.

"John W. Vinson" wrote:

On Wed, 23 Dec 2009 14:55:01 -0800, Kunal Jariwala
wrote:

Hi Mires,

I m havin trouble generating the report according to the 'JobID' specified
on the form through a click of the button... My Macro condition states tis
"[JobID]=[Forms]![QuoteForm]![JobID]" but tis dosent work... it prints all
the records...


Please post your actual code. What's the Recordsource of the report?
--

John W. Vinson [MVP]
.

  #6  
Old December 30th, 2009, 01:18 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Update a Report

On Tue, 29 Dec 2009 16:30:01 -0800, Kunal Jariwala
wrote:

Hello John,

My database have got 3 tables, they have no relationships.


Then it's not really a database. What are the three tables? What Entities
(real-life people, things or events) do they represent? How are those entities
logically connected to one another in the real world?

First table is
the one which captures all the main data off the form. 2nd & 3rd tables are
just to fillup the 'Combo Box'. A single form on which all the data are
entred and calculated.


If you're designing a database starting with a Form, you're probably on the
wrong track. Forms do not generally map all that well to logical, normalized
designs.

So according to this scenario I think the best reply would be "the 1st Table
is the Record Source for the Report."


If you open the Report in design view, view its Properties, and select the
Data tab, what is shown in its "Record Source" property?

The Where Condition for the Macro is same as I informed in my earlier post
"[JobID]=[Forms]![QuoteForm]![JobID]".


Macros don't have Where Conditions. Forms do.

--

John W. Vinson [MVP]
  #7  
Old December 30th, 2009, 01:53 AM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Update a Report

Joh,n

Ummm, macros do have Where Conditions when using OpenForm or OpenReport
actions.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"John W. Vinson" wrote in message
...
On Tue, 29 Dec 2009 16:30:01 -0800, Kunal Jariwala
wrote:

Hello John,

My database have got 3 tables, they have no relationships.


Then it's not really a database. What are the three tables? What Entities
(real-life people, things or events) do they represent? How are those
entities
logically connected to one another in the real world?

First table is
the one which captures all the main data off the form. 2nd & 3rd tables
are
just to fillup the 'Combo Box'. A single form on which all the data are
entred and calculated.


If you're designing a database starting with a Form, you're probably on
the
wrong track. Forms do not generally map all that well to logical,
normalized
designs.

So according to this scenario I think the best reply would be "the 1st
Table
is the Record Source for the Report."


If you open the Report in design view, view its Properties, and select the
Data tab, what is shown in its "Record Source" property?

The Where Condition for the Macro is same as I informed in my earlier post
"[JobID]=[Forms]![QuoteForm]![JobID]".


Macros don't have Where Conditions. Forms do.

--

John W. Vinson [MVP]



  #8  
Old December 30th, 2009, 01:54 AM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Update a Report

Kunal,

Is the form open? Is JobID text or numberic? Might help if you type your
Macro arguements here..

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Kunal Jariwala" wrote in message
...
Hello John,

My database have got 3 tables, they have no relationships. First table is
the one which captures all the main data off the form. 2nd & 3rd tables
are
just to fillup the 'Combo Box'. A single form on which all the data are
entred and calculated.

So according to this scenario I think the best reply would be "the 1st
Table
is the Record Source for the Report."

The Where Condition for the Macro is same as I informed in my earlier post
"[JobID]=[Forms]![QuoteForm]![JobID]".

Thanks.

Kunal.

"John W. Vinson" wrote:

On Wed, 23 Dec 2009 14:55:01 -0800, Kunal Jariwala
wrote:

Hi Mires,

I m havin trouble generating the report according to the 'JobID'
specified
on the form through a click of the button... My Macro condition states
tis
"[JobID]=[Forms]![QuoteForm]![JobID]" but tis dosent work... it prints
all
the records...


Please post your actual code. What's the Recordsource of the report?
--

John W. Vinson [MVP]
.



  #9  
Old December 30th, 2009, 03:12 AM posted to microsoft.public.access.forms
Kunal Jariwala
external usenet poster
 
Posts: 14
Default Update a Report

John,

1. I very well knw tat my Database design is not in Third Normal Form
neither in Second Normal Form !!! As I am not as good on creating the forms
and as this database requirement is urgent I added all the fields required in
the form into a single table, which can hav only one adverse effect - 'the
size of the database will be big' and I am not worried about the size at tis
point !!! To get tis work I made all the fields optional (not required) and
thus it allows me to put everything togather in one simple form. The only
thing Report has to do is to knw copy data opposite to the relevant JobID and
print it !!! Also the Layout of the Report is same as Layout for Form.

2. Regarding the Record Source for the Report, my reply would be same... its
the "First Table".

3. Macros DO have WHERE CONDITIONS !!! As Gina replied to ur post, they are
used to Open Report or Form through Macros.

Thanks.

Kunal.

"John W. Vinson" wrote:

On Tue, 29 Dec 2009 16:30:01 -0800, Kunal Jariwala
wrote:

Hello John,

My database have got 3 tables, they have no relationships.


Then it's not really a database. What are the three tables? What Entities
(real-life people, things or events) do they represent? How are those entities
logically connected to one another in the real world?

First table is
the one which captures all the main data off the form. 2nd & 3rd tables are
just to fillup the 'Combo Box'. A single form on which all the data are
entred and calculated.


If you're designing a database starting with a Form, you're probably on the
wrong track. Forms do not generally map all that well to logical, normalized
designs.

So according to this scenario I think the best reply would be "the 1st Table
is the Record Source for the Report."


If you open the Report in design view, view its Properties, and select the
Data tab, what is shown in its "Record Source" property?

The Where Condition for the Macro is same as I informed in my earlier post
"[JobID]=[Forms]![QuoteForm]![JobID]".


Macros don't have Where Conditions. Forms do.

--

John W. Vinson [MVP]
.

  #10  
Old December 30th, 2009, 03:16 AM posted to microsoft.public.access.forms
Kunal Jariwala
external usenet poster
 
Posts: 14
Default Update a Report

Hi Gina,

Mi JobID is Numeric (Auto Integers). I m trying to set the Print Command on
the Form. But I think its the Macros where condition which is having
trouble... The condition which I pasted before is the one I copied from one
of the Templet I downloaded from Microsoft Website. Their Database is more
complicated than mine... and it does work there but not with mine... All
names are correct, but still dosent work???

Thanks.

Kunal.

"Gina Whipp" wrote:

Kunal,

Is the form open? Is JobID text or numberic? Might help if you type your
Macro arguements here..

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Kunal Jariwala" wrote in message
...
Hello John,

My database have got 3 tables, they have no relationships. First table is
the one which captures all the main data off the form. 2nd & 3rd tables
are
just to fillup the 'Combo Box'. A single form on which all the data are
entred and calculated.

So according to this scenario I think the best reply would be "the 1st
Table
is the Record Source for the Report."

The Where Condition for the Macro is same as I informed in my earlier post
"[JobID]=[Forms]![QuoteForm]![JobID]".

Thanks.

Kunal.

"John W. Vinson" wrote:

On Wed, 23 Dec 2009 14:55:01 -0800, Kunal Jariwala
wrote:

Hi Mires,

I m havin trouble generating the report according to the 'JobID'
specified
on the form through a click of the button... My Macro condition states
tis
"[JobID]=[Forms]![QuoteForm]![JobID]" but tis dosent work... it prints
all
the records...

Please post your actual code. What's the Recordsource of the report?
--

John W. Vinson [MVP]
.



.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.