grouplevel and val()

G

Guest

I am setting my group levels with code in the Open Event of my report. My
Grouplevel(0) is a text field and I want to use the val() function when
sorting this field. I tried putting the val() around the Grouplevel code in
the Open Event and I also tried it in the sorting & grouping in the report:
=val(Grouplevel(0)). Is there a way to do this?

Thanks for your help.

Sarah
 
D

Duane Hookom

If I understand correctly, you should be able to use something like:

Me.GroupLevel(0).ControlSource = "=Val([Your Expression])"
 
M

Marshall Barton

Sarah said:
I am setting my group levels with code in the Open Event of my report. My
Grouplevel(0) is a text field and I want to use the val() function when
sorting this field. I tried putting the val() around the Grouplevel code in
the Open Event and I also tried it in the sorting & grouping in the report:
=val(Grouplevel(0)). Is there a way to do this?


I think you want to set the group level's control source to
something like:

Me.GroupLevel(0).ControlSource = "=Val(thefield)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top