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
Solved

subform problem

Posted on 1998-11-19
6
205 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
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

808 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