Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2006, 09:38 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Subform data sheet view question

Hi everybody,
At the moment I have a form based on a table and a subform based on a query linked to a different table. The linked field is BRAND - so when the brand changes in the main form, the BRAND in the subform will change and brand specific numerical data will be brought up in the subform.

Anyway, this brand specific data is then passed to 4 fields in the main form. The main form has a final field which takes the values from the 4 other fields and SUMS them.

My question is this:

I would like to be able to view the main form in DATASHEET view. However, when DATASHEET view is brought up, the fields which should be calculated from the sub form display #ERROR. Clicking on the +sign in the first column allows these to show, but it is inconsistent across the rows ie. #ERROR sometimes displays after clicking +, and sometimes the correct values display.

I have checked the main form and the correct values always display fine when in FORM view...

I know I can build a report and pass the same data to Excel - this will work. However, I am building this for my wife and she insists on having the data display in DATASHEET view from the form.

Can it be done!?

Thanks in advance
!!!
Andrew
 
Old December 5th, 2006, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Hi, Andrew, and welcome to P2P.

If you have a subform embedded in the main form, you cannot show the main form in datasheet view. The subform will have no way to manifest itself and therefore, you will get errors in those calculated fields which depend on the subform for information.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form-Subform-2ndSubForm question... DisneyPapa Access VBA 4 November 21st, 2008 09:24 AM
access function in data sheet(another sheet) jani Excel VBA 1 May 21st, 2008 07:15 PM
Changing b/ground col in subform d/sheet thedom Access 2 March 13th, 2007 07:08 AM
Data View Sorting Question jazzcatone ASP.NET 1.0 and 1.1 Basics 0 October 3rd, 2006 09:42 AM
Query data and exporting data from one sheet to an testman Excel VBA 2 April 28th, 2005 02:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.