Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 July 9th, 2004, 10:20 AM
Registered User
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Subform Headache

The problem goes like this:

I have a Form with orders and a Subform with products.

When there are no order records ( in the beggining) the
form desapears (in Form View). That case I want the Form to
be in DataEntry mode. i do this:
Me.AllowAdditions = True
Me.DataEntry = True

ok but when I do that:

Me.sfrmProducts.Form.AllowAdditions = True I get an ERROR
2455 "You entered an expression that has an invalid reference to the property Form/Report"

It does the same thing when I :

Dim sfrm as Form

Set sfrm = Me.sfrmProducts.Form

What's wrong about it



GregoryHu





Similar Threads
Thread Thread Starter Forum Replies Last Post
subform jeremy1048 Access 0 May 2nd, 2008 09:03 AM
SelectedValueChanged event is giving me a headache SQLScott Pro Visual Basic 2005 1 January 2nd, 2008 06:46 PM
iif Statement giving me a headache! MrMacca BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 January 7th, 2005 05:49 AM
XML, Sockets, Streams and a headache owain General .NET 4 September 8th, 2004 04:53 AM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM





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