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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to change the ControlSource

Status
Not open for further replies.

regava

Programmer
May 24, 2001
152
US
I have this report based on a query. One of the fields in the query was changed. I wonder if there is a way to change the property ControlSource in GroupLevel0 in the report? I have tried the following code in the Open event procedure: Me.GroupLevel(0).ControlSource = ALJName and did not work, I got error 2427 - You entered an expression that has no value. Any help is appreciated
 
What is ALJName? If it's a control on a form you have to explicitly define it:

for example - [tt]Forms!MyForm!ALJName[/tt]

I'm CosmoKramer, and I approve this message.
 
ALJName is one of the fields in the query
 
I found the solution:
Me.GroupLevel(0).ControlSource = "ALJName"
Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top