Solved

subform problem

Posted on 1998-11-19
6
201 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now