Solved

subform problem

Posted on 1998-11-19
6
206 Views
Last Modified: 2008-01-16
I've set up a query which includes the totals row and then have connected it to a form. I then want to place a subform on this form which will have its recordsource from another query but with refers to the active form ie. [forms]![frmQualityApack]![proj_eng] which will then show associated information. I get the following error
You can't use a pass through query or non fixed column crossquery as a record source for a subform or subreport.
Before you bind the subform or subreport to a crosstab query, set the query columnheadings property.
any ideas..probably needs more info

Cheers

Scott
0
Comment
Question by:scottsanpedro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Expert Comment

by:Poddy
ID: 1968849
is the query a crosstab query?

if so, do what it says ! :)
0
 
LVL 1

Author Comment

by:scottsanpedro
ID: 1968850
No its not a crosstab query...I've only used the totals row in a normal query
0
 
LVL 2

Expert Comment

by:Belz
ID: 1968851
Is it a pass-through query?  If so your probably sending it a variable name or form variable.  Pass-through queries must have a value passed in it not a variable.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 1

Author Comment

by:scottsanpedro
ID: 1968852
its not a pass through query either...all it is is a normal query with the total row inserted ie click view then totals,
 it doesn't require headings as it not a crosstab query...
I'm trying to add a subform to show related records to the query.
To explain more...the original query shows the amount of sites a person engineers along with figures such as total hours per week assigned, actual hours worked and percentages..this then translates to a form and is proving no problem..the error occurs when i trying to add the subform...the error also occurs when i put [enter week number] on a datepart field..it doesn't allow the user to input the week, it works ok on running the query but not through the form...hope this explains a bit better

scott

0
 

Accepted Solution

by:
24680148 earned 30 total points
ID: 1968853
Do not use the SQL for the solution, use the form, ie, remove the total and use a generic SELECT Statement.  How you use the form to solve the solution is up to you in that you can use Code or an Expression.  Any problems display your Sequal Code in your reply.

Rich Nichol
0
 
LVL 1

Author Comment

by:scottsanpedro
ID: 1968854
I'll go with that

Thanks again

Scott
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Report Expression 4 27
MS Access Docmd export to excel do not over write existing file 9 25
MS Access Error Handling 6 30
ListData refresh onClick 5 11
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question