Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Refference Unbound Text Box

I have an unbound text box on a form. The text box has a controll
source as follows:

=IIf(DateDiff("d",[DateSent],[DateReceived])<=5,"On
Time",IIf(DateDiff("d",[DateSent],[DateReceived])5,"Overdue","Not
Submitted"))

I have named the TextBox "PPSub".

My question is; can I now refference this text box in another unbound
text box somthing like this

=Dcount("*","frmPPTrax","PPSub='On Time'")

The frmPPTrax is the name of the form where said unbound text box
"PPSub" is located.

I just don't want to have to create a Dcount with that IIF statement in
it.

Thanks Everyone

Hope this was clear...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Refference Unbound Text Box

Dcount wouldn't even work with those arguments - it is totally based on
values in cells.

Textboxes can be bound to cells or filled with code.

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
I have an unbound text box on a form. The text box has a controll
source as follows:

=IIf(DateDiff("d",[DateSent],[DateReceived])<=5,"On
Time",IIf(DateDiff("d",[DateSent],[DateReceived])5,"Overdue","Not
Submitted"))

I have named the TextBox "PPSub".

My question is; can I now refference this text box in another unbound
text box somthing like this

=Dcount("*","frmPPTrax","PPSub='On Time'")

The frmPPTrax is the name of the form where said unbound text box
"PPSub" is located.

I just don't want to have to create a Dcount with that IIF statement in
it.

Thanks Everyone

Hope this was clear...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying formulas forward and have the column refference move backw D Excel Worksheet Functions 2 August 28th 07 08:47 PM
Odd "circular refference" error Jerry W. Lewis Excel Discussion (Misc queries) 0 May 1st 06 06:10 PM
i want to find a value in a refference array Hasty Excel Worksheet Functions 1 October 27th 05 08:07 AM
unbound pastespecial in Access Brad Adams Excel Programming 4 January 6th 05 01:16 PM
Visual Basic to Excel Refference / Tutorial Sony[_2_] Excel Programming 1 August 6th 03 08:38 AM


All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"