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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |