Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Refering to fields on master from from subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
magmike - 27 Nov 2007 16:21 GMT
I have a text box on a subform, that I am using an IIf statement in,
so that if the field ([IUSA]) on the parent form Is Null, returns "No
data for this record", else returns "IUSA Data" as a caption.

The code:
=IIf([Form].[ProspectForm].[IUSA] Is Null,"RefUSA record not
connected","RefUSA Data")

Am I referring to the field on the parent form (ProspectForm)
incorrectly, because it isn't working? It returns #Name?

thanks in advance!

magmike
Klatuu - 27 Nov 2007 16:33 GMT
Where you have form, it should be forms:
=IIf([Forms].[ProspectForm].[IUSA] Is Null,"RefUSA record not
> connected","RefUSA Data")

If that doesn't cure it, try this version:

=IIf(Me.Parent.[IUSA] Is Null,"RefUSA record not
> connected","RefUSA Data")
Signature

Dave Hargis, Microsoft Access MVP

> I have a text box on a subform, that I am using an IIf statement in,
> so that if the field ([IUSA]) on the parent form Is Null, returns "No
[quoted text clipped - 10 lines]
>
> magmike
magmike - 27 Nov 2007 20:51 GMT
> Where you have form, it should be forms:
>  =IIf([Forms].[ProspectForm].[IUSA] Is Null,"RefUSA record not
[quoted text clipped - 24 lines]
>
> - Show quoted text -

I see. Mistake was the missing letter. Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.