Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Update a Report

0 views
Skip to first unread message

RMires

unread,
Dec 23, 2009, 2:56:09 PM12/23/09
to
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.

Gina Whipp

unread,
Dec 23, 2009, 3:07:06 PM12/23/09
to
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" <RMi...@discussions.microsoft.com> wrote in message
news:852E9DE4-40EA-4C59...@microsoft.com...

Kunal Jariwala

unread,
Dec 23, 2009, 5:55:01 PM12/23/09
to
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.

John W. Vinson

unread,
Dec 23, 2009, 6:13:21 PM12/23/09
to
On Wed, 23 Dec 2009 14:55:01 -0800, Kunal Jariwala
<KunalJ...@discussions.microsoft.com> 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]

Kunal Jariwala

unread,
Dec 29, 2009, 7:30:01 PM12/29/09
to
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:

> .
>

John W. Vinson

unread,
Dec 29, 2009, 8:18:04 PM12/29/09
to
On Tue, 29 Dec 2009 16:30:01 -0800, Kunal Jariwala
<KunalJ...@discussions.microsoft.com> 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.

Gina Whipp

unread,
Dec 29, 2009, 8:53:24 PM12/29/09
to
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" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:gbalj5tu8povmvecc...@4ax.com...

Gina Whipp

unread,
Dec 29, 2009, 8:54:35 PM12/29/09
to
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" <KunalJ...@discussions.microsoft.com> wrote in message
news:FA7FABF0-0692-432D...@microsoft.com...

Kunal Jariwala

unread,
Dec 29, 2009, 10:12:01 PM12/29/09
to
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:

> .
>

Kunal Jariwala

unread,
Dec 29, 2009, 10:16:01 PM12/29/09
to
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:

> .
>

Gina Whipp

unread,
Dec 29, 2009, 10:20:56 PM12/29/09
to
Kunal,

If the form name is the same and the field name is the same then I restate
my request. Please type your Macro actions here so we can look and see if
we spot any errors.

--
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" <KunalJ...@discussions.microsoft.com> wrote in message

news:1B3FA851-A002-4928...@microsoft.com...

Gina Whipp

unread,
Dec 29, 2009, 10:22:22 PM12/29/09
to
V,

I do not see what fields are in the First table, did you post that
information somewhere?

--
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" <KunalJ...@discussions.microsoft.com> wrote in message

news:F2715B9B-8CA7-47DA...@microsoft.com...

John W. Vinson

unread,
Dec 29, 2009, 11:21:46 PM12/29/09
to
On Tue, 29 Dec 2009 20:53:24 -0500, "Gina Whipp" <NotInt...@InViruses.com>
wrote:

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

<blush> Sorry, Kunal... shows how much I use macros!

Kunal Jariwala

unread,
Jan 3, 2010, 6:29:01 PM1/3/10
to
Gina,

Mi Macro Action is "OpenReport" -> Report Name "Quote" -> View "Print" ->
Filter Name 'Blank' -> Where Condition "[JobID]=[Forms]![QuoteForm]![JobID]"
-> Window Mode "Normal".

Regards,

Kunal.

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 3, 2010, 6:44:17 PM1/3/10
to
Kunal,

Try changing the Where condition to...

"[JobID]=" & =[Forms]![QuoteForm]![JobID]

Please confirm that the form is open when you run this...

--
Gina Whipp
2010 Microsoft MVP (Access)

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

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

"Kunal Jariwala" <KunalJ...@discussions.microsoft.com> wrote in message

news:DE473730-9E00-417D...@microsoft.com...

John W. Vinson

unread,
Jan 3, 2010, 9:12:57 PM1/3/10
to
On Sun, 3 Jan 2010 18:44:17 -0500, "Gina Whipp" <NotInt...@InViruses.com>
wrote:

>Kunal,


>
>Try changing the Where condition to...
>
>"[JobID]=" & =[Forms]![QuoteForm]![JobID]
>
>Please confirm that the form is open when you run this...

Gina, don't you have an extra = sign there? It should probably be

"[JobID]=" & [Forms]![QuoteForm]![JobID]

Gina Whipp

unread,
Jan 3, 2010, 10:06:01 PM1/3/10
to
John,

Thank you... I have the sister to David Fenton's typist!

--
Gina Whipp
2010 Microsoft MVP (Access)

"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" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:5kj2k5h4iueg3skah...@4ax.com...

John W. Vinson

unread,
Jan 4, 2010, 12:00:07 AM1/4/10
to
On Sun, 3 Jan 2010 22:06:01 -0500, "Gina Whipp" <NotInt...@InViruses.com>
wrote:

>John,


>
>Thank you... I have the sister to David Fenton's typist!

LOL!!!

Is that a case of "typecasting"?

Gina Whipp

unread,
Jan 4, 2010, 12:04:06 AM1/4/10
to
Hmmm, I guess it is! <g>

--
Gina Whipp
2010 Microsoft MVP (Access)

"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" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message

news:4et2k5h52pi0looi3...@4ax.com...

Kunal Jariwala

unread,
Jan 4, 2010, 10:41:01 PM1/4/10
to
Hi Gina,

Thanks for the reply...

The work same as mi previous one... prints all the data... I just want to
print data related to that particular JobID which is shown on the Fom...

Mi form is always open as that print command is on the form itself... so I
click the print button and it prints all data one by one...

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 4, 2010, 10:55:43 PM1/4/10
to
Kunal,

Okay then the only thing left to check is the Print Commnad... I assume you
used a Command Button. Please look at the Command Button and tell me what
you see in the On_Click event of the Command Button.

--
Gina Whipp
2010 Microsoft MVP (Access)

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

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

"Kunal Jariwala" <KunalJ...@discussions.microsoft.com> wrote in message

news:958C538A-BA67-434A...@microsoft.com...

Kunal Jariwala

unread,
Jan 5, 2010, 6:10:01 PM1/5/10
to
Gina,

The On Click event didnt had anything when I created the command button
through the wizard in which I defined wat report I want to print... so I
opened mi form and and defined the event as the Print Macro which we made...

Do you think it could b a problem wit the record source of the Report... it
just struck in mi mind tat the record source of the report is the Table...
and not the Form...???

Regards,

Kunal.

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 5, 2010, 7:04:47 PM1/5/10
to
Kunal,

What is the RecordSOucre of the report and what is the RecordSource of the
form? Also, did you type in the name of the Macro or select it from a drop
down list? Also, what version of Access?

--
Gina Whipp
2010 Microsoft MVP (Access)

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

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

"Kunal Jariwala" <KunalJ...@discussions.microsoft.com> wrote in message

news:B565CA5B-F392-4FF6...@microsoft.com...

Kunal Jariwala

unread,
Jan 5, 2010, 10:02:01 PM1/5/10
to
Gina,

Record Source for both Form and Report is same "Quote" which is the 'First
Table' I selected the Macro from the Dropdown list. I am using Access 2003

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 5, 2010, 10:13:06 PM1/5/10
to
Kunal,

Then the RecordSource is not the problem. Is the field JobID on the form
and can you confirm that that is the field name?

--
Gina Whipp
2010 Microsoft MVP (Access)

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

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

"Kunal Jariwala" <KunalJ...@discussions.microsoft.com> wrote in message

news:9FCF5F06-10B0-4603...@microsoft.com...

Kunal Jariwala

unread,
Jan 6, 2010, 8:38:01 PM1/6/10
to
Gina,

Yes that part is correct as well...!!!

Kunal.

"Gina Whipp" wrote:

> .

Gina Whipp

unread,
Jan 6, 2010, 8:43:31 PM1/6/10
to
Kunal,

Now, I'm stumped because everything you have confirmed *appears* correct so
the report should filter and not show all the records. Is the database in a
state where you can send it to me?

--
Gina Whipp
2010 Microsoft MVP (Access)

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

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

"Kunal Jariwala" <KunalJ...@discussions.microsoft.com> wrote in message

news:C8AB0BBA-A3F5-4CC1...@microsoft.com...

Kunal Jariwala

unread,
Jan 7, 2010, 11:46:01 PM1/7/10
to
Yes... provide me with your email address...

Gina Whipp

unread,
Jan 8, 2010, 12:05:10 AM1/8/10
to
Kunal,

classon <at> aol <dot> com

Please replace the <at> with @ and the <dot> with a . Trying to prevent the
Spammers from harvesting.

--
Gina Whipp
2010 Microsoft MVP (Access)

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

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

"Kunal Jariwala" <KunalJ...@discussions.microsoft.com> wrote in message

news:547B8773-A86D-453E...@microsoft.com...

0 new messages