Access 2003 expression help

Hello, I have the following expression on a textbox.

=IIf([DMR DATE CLOSED]<>"",[l])

If I run my report with the expression as is I have to provide my report parameters twice If I remove the expression I only have to give the report parameters once.

I'm thinking the expression is the issue. What is wrong with the expression above?

DMR DATE CLOSED is a valid column column in my query.

Any help is greatly appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What is [1]? And what is data type of [DMR DATE CLOSED]? What is your objective?
gogetsomeAuthor Commented:
Sorry, I have no idea. I inherited the database. I just know that it has something to do with the issue.
 If I leave the expression and provide the parameters twice the value in the textbox is the primary key(orderId) for the data. Below this value is the closed date again in another textbox.

Now, if the date value is null then the textbox and the closed date are not visible.

I think they are trying to show the primary key(ordered) and closed date if the closed date is not null but hide both textboxes if the date is null.

Make sense?
Can you provide a database with no records? (New database, import all objects without table data.)
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

gogetsomeAuthor Commented:
No, I've signed an NDA. Bummer. Sorry.
If [DMR DATE CLOSED] is a valid column, it should be either a date, a text expression of a date, or a yes/no if [DMR DATE] is closed or not. Since [1] is in brackets, it should be a field of a table or query. What specific parameters are you being asked for in either instance (with or without the expression?)  
The bummer is my ability to intuit the answers without a sample db structure has been hampered by the foil I wear on my head. :>)
The problem is that you are providing the parameter when you open or print the report instead of having the report's RecordSource pull the parameter from a field or a textbox on a form.  Whenever you print or view a report, the RecordSource may be queried more than once because certain events occur multiple times.  For instance, if you have the total number of pages displayed in the report Footer, an initial pass is needed to determine how many pages there are total.  The second pass formats the report.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gogetsomeAuthor Commented:
Jerry, you are probably right. It looks like an attempt to  display a result set of a query that runs if the date is not null.

Irog, this would also cause the parameter double request as well. Right?

I will have to ask tomorrow what they were trying to accomplish.

I'm dividing the points on this one.

Thanks to you both.
this would also cause the parameter double request as well. Right?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.