Solved

subform problem

Posted on 1998-11-19
6
204 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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.

776 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