Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Use of property

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Can anyone help

I am trying to set the row source of a control on my form based on criteria selected in a control called [report format] but I get the message Invalid use of property

I am using the following code

If Forms![Under 500 Selection for Spend Report]![Report Format] = "In Progress (Not Approved)" Then Me.Under_500_Year.RowSource "Under 500 Selection Query in Progress2"

I assume its something to do with the control [Under 500 Year]
but have no idea what to check next

Any help would be apreciated

Thanks
 
Me.Under_500_Year.RowSource "Under 500 Selection Query in Progress2"
Are you really missing an equal sign here, or is it a typo?

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 
Perhaps replace this:
Me.Under_500_Year.RowSource "Under 500 Selection Query in Progress2"
with this ?
Me![Under 500 Year].RowSource [!]=[/!] "Under 500 Selection Query in Progress2"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top