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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

stop the loading of subform



 
 
Thread Tools Display Modes
  #1  
Old July 23rd, 2004, 05:17 AM
manish
external usenet poster
 
Posts: n/a
Default stop the loading of subform

can anyone tell me the code or whatever to stop a form & a
subform from being loaded if the related query does not
contain any records?? This is because it shows error signs
on report.
any help will be highly appreciated as i do not know
anything about coding.
thanks in advance.

manish
  #2  
Old July 23rd, 2004, 05:43 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default stop the loading of subform

If you have a text box that references a subreport control value, you can
use something like:
=IIf(subreportname.Report.HasData,subreportname.re port.txtTotal,0)

--
Duane Hookom
MS Access MVP


"manish" wrote in message
...
can anyone tell me the code or whatever to stop a form & a
subform from being loaded if the related query does not
contain any records?? This is because it shows error signs
on report.
any help will be highly appreciated as i do not know
anything about coding.
thanks in advance.

manish



  #3  
Old July 23rd, 2004, 06:39 AM
manish
external usenet poster
 
Posts: n/a
Default stop the loading of subform

Dear Duane
I am still not being able to stop the subform from loading
when there is no data.
Form name - 'mainform'
subform name - 'subform'

i have tried to enter the following formula in various
places but error pops up.


=IIf([subform].report.HasData,[subform].Report.amt,0)

amt is the field of the subform

Please HELP!!!

regards

manish


-----Original Message-----
If you have a text box that references a subreport

control value, you can
use something like:
=IIf

(subreportname.Report.HasData,subreportname.report .txtTotal
,0)

--
Duane Hookom
MS Access MVP


"manish" wrote in

message
...
can anyone tell me the code or whatever to stop a form

& a
subform from being loaded if the related query does not
contain any records?? This is because it shows error

signs
on report.
any help will be highly appreciated as i do not know
anything about coding.
thanks in advance.

manish



.

  #4  
Old July 23rd, 2004, 06:44 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default stop the loading of subform

This is a reports NG. If you have form questions, you should ask in a Forms
news group. It is much less confusing that way.

If you are indeed talking about reports, you need to provide the name of
your subreport control name as well as the name of the control on the
subreport.

--
Duane Hookom
MS Access MVP


"manish" wrote in message
...
Dear Duane
I am still not being able to stop the subform from loading
when there is no data.
Form name - 'mainform'
subform name - 'subform'

i have tried to enter the following formula in various
places but error pops up.


=IIf([subform].report.HasData,[subform].Report.amt,0)

amt is the field of the subform

Please HELP!!!

regards

manish


-----Original Message-----
If you have a text box that references a subreport

control value, you can
use something like:
=IIf

(subreportname.Report.HasData,subreportname.report .txtTotal
,0)

--
Duane Hookom
MS Access MVP


"manish" wrote in

message
...
can anyone tell me the code or whatever to stop a form

& a
subform from being loaded if the related query does not
contain any records?? This is because it shows error

signs
on report.
any help will be highly appreciated as i do not know
anything about coding.
thanks in advance.

manish



.



  #5  
Old July 23rd, 2004, 06:53 AM
manish
external usenet poster
 
Posts: n/a
Default stop the loading of subform

Dear Duane
Where do i put the code??
Sorry about the form thing. Actually i meant report.
regards
manish

-----Original Message-----
This is a reports NG. If you have form questions, you

should ask in a Forms
news group. It is much less confusing that way.

If you are indeed talking about reports, you need to

provide the name of
your subreport control name as well as the name of the

control on the
subreport.

--
Duane Hookom
MS Access MVP


"manish" wrote in

message
...
Dear Duane
I am still not being able to stop the subform from

loading
when there is no data.
Form name - 'mainform'
subform name - 'subform'

i have tried to enter the following formula in various
places but error pops up.


=IIf([subform].report.HasData,[subform].Report.amt,0)

amt is the field of the subform

Please HELP!!!

regards

manish


-----Original Message-----
If you have a text box that references a subreport

control value, you can
use something like:
=IIf


(subreportname.Report.HasData,subreportname.report .txtTotal
,0)

--
Duane Hookom
MS Access MVP


"manish" wrote in

message
...
can anyone tell me the code or whatever to stop a

form
& a
subform from being loaded if the related query does

not
contain any records?? This is because it shows error

signs
on report.
any help will be highly appreciated as i do not know
anything about coding.
thanks in advance.

manish


.



.

  #6  
Old July 23rd, 2004, 01:07 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default stop the loading of subform

The control source of a text box.

--
Duane Hookom
MS Access MVP


"manish" wrote in message
...
Dear Duane
Where do i put the code??
Sorry about the form thing. Actually i meant report.
regards
manish

-----Original Message-----
This is a reports NG. If you have form questions, you

should ask in a Forms
news group. It is much less confusing that way.

If you are indeed talking about reports, you need to

provide the name of
your subreport control name as well as the name of the

control on the
subreport.

--
Duane Hookom
MS Access MVP


"manish" wrote in

message
...
Dear Duane
I am still not being able to stop the subform from

loading
when there is no data.
Form name - 'mainform'
subform name - 'subform'

i have tried to enter the following formula in various
places but error pops up.


=IIf([subform].report.HasData,[subform].Report.amt,0)

amt is the field of the subform

Please HELP!!!

regards

manish


-----Original Message-----
If you have a text box that references a subreport
control value, you can
use something like:
=IIf

(subreportname.Report.HasData,subreportname.report .txtTotal
,0)

--
Duane Hookom
MS Access MVP


"manish" wrote in
message
...
can anyone tell me the code or whatever to stop a

form
& a
subform from being loaded if the related query does

not
contain any records?? This is because it shows error
signs
on report.
any help will be highly appreciated as i do not know
anything about coding.
thanks in advance.

manish


.



.



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with cascading combos Tom Using Forms 19 July 1st, 2004 11:11 PM
Recordset in subform based on field in parent form Lyn General Discussion 15 June 14th, 2004 03:10 PM
Record Source for SubForm David F Using Forms 1 June 7th, 2004 10:42 PM
subform within subform Chris Using Forms 1 June 4th, 2004 10:26 PM


All times are GMT +1. The time now is 04:48 AM.


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