I cant get my query results to list in the text boxes! (1 Viewer)

Officeboy

Registered User.
Local time
Today, 02:30
Joined
Nov 10, 2009
Messages
66
I've made a simple database and I've made a cross tab query to show some statistical results. In my front page, I have where the results are going to show. I simply thought if I associate the control source to those fields, it would work. After I found out that didn't, I'm trying to create a Dlook up for this.


Can you check my code and see if you can see what i'm doing wrong?

Thank you guys!
View attachment Per Lead Tracking Database.accdb
 

Trevor G

Registered User.
Local time
Today, 10:30
Joined
Oct 1, 2009
Messages
2,341
I've made a simple database and I've made a cross tab query to show some statistical results. In my front page, I have where the results are going to show. I simply thought if I associate the control source to those fields, it would work. After I found out that didn't, I'm trying to create a Dlook up for this.


Can you check my code and see if you can see what i'm doing wrong?

Thank you guys!
View attachment 33464


What you need is in the subform place in an extra textbox in the form footer and name it like txtTot1 and then use the control source to sum the charges.

Then on the main form place in another textbox and use the control source to find the subform txttot1 and you will get a result of 50 on your first record. You can also use avg and count.

Hope this helps you.

Example returned.
 

Attachments

  • aaq.zip
    35.9 KB · Views: 74

Officeboy

Registered User.
Local time
Today, 02:30
Joined
Nov 10, 2009
Messages
66
Thanks! It works!
 

Users who are viewing this thread

Top Bottom