473,499 Members | 1,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I preview a Report with criteria from a subform?

1 New Member
well, I have a Form with many pages (tab). On one tab, there is a subform containing a text box that I'd like to reflect the content on the report that a cmdbutton will open.

See the code:

rptFamilySurveyForm!Text73=Me!CGuardians_Subform!G uardianID

NB: GuardianID is a text box on the report and I want it to contain exactlly the data which is in Text73.

And the error message comes: "Microsoft Access can't find the Field "CGuardians_Subform" reffered to..."

I don't understand why. So please help me!
Dec 6 '10 #1
1 1459
pod
298 Contributor
I think it is because you have to specify the controls, try something like the following
Expand|Select|Wrap|Line Numbers
  1. MnFrmName!frmFldName.Value=Forms!MnFormName.SubFrmName.Controls!SubFrmFldName.Value
  2.  
Dec 7 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4723
by: Tim Graichen | last post by:
Hi! I have a subform (ShedTableSubForm) at the bottom of my MAIN form. I would like to do two things. 1) preview on screen a report (ShedReport) of the subform data the record currently...
3
11050
by: pelcovits | last post by:
I am trying to set up an unbound form to enter report criteria. I've followed the MS Office Assistance document: "Create a form to enter report criteria" which describes how to enter data (such...
1
1692
by: Louly | last post by:
Create a form to enter report criteria? Anyone can help me with this? I don't want to do it using the Macros method. Is there a way to do it using VBA? Thanks for your cooperation. Louly
7
6732
by: ppywong | last post by:
Hi, hopefully people can help: I am creating a rather simple database for a kids holiday camp. I have two main tables: tblLData (Leaders info) and tblKData (kids info). What I have done is...
6
1826
by: DavidOwens | last post by:
Sub PreviewReport_Click() On Error GoTo Err_PreviewReport_Click Dim stRepName As String: Rem Holds the Report name Dim stDispId As String: Rem Holds the Dispenser ID Dim...
3
2540
by: kjworm | last post by:
Greetings, I have a report displayed on a screen that anyone in the office can look at. The data on this report will change from time to time. This report has different colors displayed...
7
2539
by: arali | last post by:
I have made a database in Access I made a report criteria form on which i use to datpickers dtpicker0 and dtpicker1 and two command button open button is used to open the report...
4
5293
by: John Torres | last post by:
I have added a "Preview Report" button on my main Form Page to mainly "print preview" current page including the 1st subform and I already designed the Report Page for it. But for some reason it...
3
3885
by: sconard | last post by:
I have a subform in datasheet view that is the result of a complex vba custom query with a number of parameters. I would like to place a button on the parent form to print the datasheet view as a...
0
1497
by: Datto | last post by:
hi i am facing problem in my project ,, with report i have Product received voucher form it contains subform for the products ,,we sometimes received more that product in the same PRV I've...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.