PC Review


Reply
Thread Tools Rate Thread

Date Diff Problem

 
 
Eric
Guest
Posts: n/a
 
      8th Sep 2003
Hi
I have a form (voucherchk) that has a one-to-one
relationship between two forms (cpvoucher & fpvoucher).
Each of the cpvoucher and fpvoucher forms have a cmd
button that opens a filter voucherchk so that each of the
cpvoucher and the fpvoucher forms have one specific
voucherchk form. What I want is to have a textbox that
shows either the cpvoucher or the fpvoucher date. I have
the following in the Control Source of that textbox.

=(Nz([cp vouchers].Form!vosubdate,0) Or Nz([fp
vouchers].Form!vosubdate,0))

For some reason this does not work. I thank you in
advance for any help you could provide. Thanks
Eric
 
Reply With Quote
 
 
 
 
Ken Snell
Guest
Posts: n/a
 
      9th Sep 2003
You need to determine when you will display the cpvoucher value, and when
you'll display the fpvoucher value. You then can use an IIf expression to
select which one to display:

=IIf(ConditionForDisplayingcpvoucher = True, Nz([cp
vouchers].Form!vosubdate,0), Nz([fp
vouchers].Form!vosubdate,0))
--
Ken Snell
<MS ACCESS MVP>

"Eric" <(E-Mail Removed)> wrote in message
news:428a01c37658$9748dc00$(E-Mail Removed)...
> Hi
> I have a form (voucherchk) that has a one-to-one
> relationship between two forms (cpvoucher & fpvoucher).
> Each of the cpvoucher and fpvoucher forms have a cmd
> button that opens a filter voucherchk so that each of the
> cpvoucher and the fpvoucher forms have one specific
> voucherchk form. What I want is to have a textbox that
> shows either the cpvoucher or the fpvoucher date. I have
> the following in the Control Source of that textbox.
>
> =(Nz([cp vouchers].Form!vosubdate,0) Or Nz([fp
> vouchers].Form!vosubdate,0))
>
> For some reason this does not work. I thank you in
> advance for any help you could provide. Thanks
> Eric



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Diff problem =?Utf-8?B?UGV0ZXIgTmV3bWFu?= Microsoft VB .NET 1 3rd Jul 2007 10:16 AM
Date Diff =?Utf-8?B?RC4gTS4=?= Microsoft Access Queries 6 28th Jun 2006 01:24 AM
date (minus) date = working days diff jjj Microsoft Excel Misc 3 6th Dec 2005 03:16 PM
Date Diff =?Utf-8?B?ZnJ1c3RyYXRlZHd0aGlz?= Microsoft Access 3 8th Oct 2004 06:24 PM
date diff? Leslie S Microsoft Access Queries 3 2nd Dec 2003 05:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:16 AM.