A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Adding a variable to a report



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2004, 02:28 AM
CD Tom
external usenet poster
 
Posts: n/a
Default Adding a variable to a report

I use a criteria statement to select between dates from a query. I don't use the prompt in the query because of other selections that are part of the criteria. I have public variables set up for vbdate and vedate. I want these dates to appear on the report as a from to. I've tried using the standard =([vbdate]) but I only get the #error in the field. Can someone tell me what I'm doing wrong. Thanks for any help.

Tom
  #2  
Old June 17th, 2004, 04:18 AM
Mike Painter
external usenet poster
 
Posts: n/a
Default Adding a variable to a report


"CD Tom" wrote in message
...
I use a criteria statement to select between dates from a query. I don't

use the prompt in the query because of other selections that are part of the
criteria. I have public variables set up for vbdate and vedate. I want
these dates to appear on the report as a from to. I've tried using the
standard =([vbdate]) but I only get the #error in the field. Can someone
tell me what I'm doing wrong. Thanks for any help.

This is covered in help.
You have to tell it where the information comes from

Usually it will be something like Forms!MyFormName!MyDateFieldName

= "From " & Forms!MyFormName!MyStartDateFieldName & " and " &
Forms!MyFormName!MyEndDateFieldName


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:37 PM.


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