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 / Reports / Printing / January 2006

Tip: Looking for answers? Try searching our database.

Report with conditions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
melissas - 18 Jan 2006 00:36 GMT
I have a macro that opens a form & gets a combination of user input along
with data from a query that the form is based on.  I would like one of two
reports to print depending on the value of one data field which can only be Y
or N.  How do I get this to happen.  I was trying to use the macro lines like
this:
Condition                          Action
[myForm]![myField]='Y'      Open Report A
[myForm]![myField]='N'      Open Report B

...but it's not working.  Help - please.

Thanks,
MelissaS
tina - 18 Jan 2006 04:56 GMT
is the macro running from the form? if so, you don't need to reference the
form in the conditional statement, just the control name. also, is the field
a Text data type, or is it a Yes/No data type? if it's a Yes/No data type,
then it's actually a Boolean value, which is True or False (without any
quotes), as

[FieldName] = True
[FieldName] = False

hth

> I have a macro that opens a form & gets a combination of user input along
> with data from a query that the form is based on.  I would like one of two
[quoted text clipped - 9 lines]
> Thanks,
> MelissaS
 
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.