J JiTS Ciao! Local time Today, 22:47 Joined Dec 12, 2003 Messages 77 Jan 28, 2004 #1 Hi, I would like to display the page numbers on the pages of my report, but only if the report is more than one page. How to do this in the design and/or VB area?!? Thanks in advance, JiTS
Hi, I would like to display the page numbers on the pages of my report, but only if the report is more than one page. How to do this in the design and/or VB area?!? Thanks in advance, JiTS
J JiTS Ciao! Local time Today, 22:47 Joined Dec 12, 2003 Messages 77 Jan 28, 2004 #2 I got it! I added the following code in the controlsource of the page number textfield: =IIf([Pages]>1;"page# " & [Page] & " van " & [Pages]) Click to expand... This means if the report is more than one page then it will display the pages. *SMiLE* JiTS
I got it! I added the following code in the controlsource of the page number textfield: =IIf([Pages]>1;"page# " & [Page] & " van " & [Pages]) Click to expand... This means if the report is more than one page then it will display the pages. *SMiLE* JiTS
rsewell Registered User. Local time Today, 21:47 Joined Jun 4, 2003 Messages 12 Jan 28, 2004 #3 similar problem JiTS, I'm looking for something that will explain the syntax that you used... where did you find it? Thanks!
similar problem JiTS, I'm looking for something that will explain the syntax that you used... where did you find it? Thanks!
J JiTS Ciao! Local time Today, 22:47 Joined Dec 12, 2003 Messages 77 Jan 29, 2004 #4 Actually, I did not find it somewhere but I figured it out by myself I guess... I will try to explain it to you. The next code is the same as an if statement in VB but you enter this code in the controlsource of your text box. Code: =iif(expr;true;false) expr: this the expression true: this is the commando to do if the expression is true false: this is the commando to do if the expression is false For example: =iif([OrderID]=0;txtOrderID.visible=false;txtOrderID.visible=true) If OrderID = 0 then the text box txtOrderID is not visible, otherwise it is. This is my best english answer for a Dutch guy! *SMiLE* JiTS
Actually, I did not find it somewhere but I figured it out by myself I guess... I will try to explain it to you. The next code is the same as an if statement in VB but you enter this code in the controlsource of your text box. Code: =iif(expr;true;false) expr: this the expression true: this is the commando to do if the expression is true false: this is the commando to do if the expression is false For example: =iif([OrderID]=0;txtOrderID.visible=false;txtOrderID.visible=true) If OrderID = 0 then the text box txtOrderID is not visible, otherwise it is. This is my best english answer for a Dutch guy! *SMiLE* JiTS
C coastguard Registered User. Local time Today, 21:47 Joined Jan 26, 2004 Messages 19 Jan 29, 2004 #5 Thanks for the explanation, It's helped me to think through a problem on a different matter.
J JiTS Ciao! Local time Today, 22:47 Joined Dec 12, 2003 Messages 77 Jan 29, 2004 #6 No problem at all! *SMiLE* JiTS
rsewell Registered User. Local time Today, 21:47 Joined Jun 4, 2003 Messages 12 Jan 30, 2004 #7 Ohhhhh, I get it now. Trust me, your English is better than my Dutch. Danka Shen (hope thats spelled right)
Ohhhhh, I get it now. Trust me, your English is better than my Dutch. Danka Shen (hope thats spelled right)
J JiTS Ciao! Local time Today, 22:47 Joined Dec 12, 2003 Messages 77 Jan 30, 2004 #8 Danka Shen Click to expand... First of all I am Dutch, not German (see quote)... and in The Netherlands you could say 'Dank je wel' or 'Bedankt'. Don't start with the bad words in Dutch because that's not very nice on this forum... *SMiLE* JiTS
Danka Shen Click to expand... First of all I am Dutch, not German (see quote)... and in The Netherlands you could say 'Dank je wel' or 'Bedankt'. Don't start with the bad words in Dutch because that's not very nice on this forum... *SMiLE* JiTS
E expat1000 Registered User. Local time Today, 13:47 Joined Apr 6, 2012 Messages 18 Dec 16, 2013 #9 IIf([Pages]>1,"page# " & [Page] & " of " & [Pages]) Comma, not semi-colon after 1