473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Access2K vs Access2002 Sums

I am using a control MyTotal on a subform footer to get a sum of all
rows on the subform: =Sum([Amount])
On the main form I have a control whose controlsource is:
=Forms!FormName.Child.Form.MyTotal.
This displays the sum of the subform.
It works fine on Access 2000 but displays an error in Access 2002. I
can't figure this one out.
lq

Nov 13 '05 #1
5 1594
"laurenq uantrell" <la*************@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I am using a control MyTotal on a subform footer to get a sum of all
rows on the subform: =Sum([Amount])
On the main form I have a control whose controlsource is:
=Forms!FormName.Child.Form.MyTotal.
This displays the sum of the subform.
It works fine on Access 2000 but displays an error in Access 2002. I
can't figure this one out.
lq


It should be = Me . [MySubForm] . Form ! [MyTotal]

Do you really use "Child" as the name for your subform?
May be "Child" is a reseved word for Access 2002.

Bruno

Nov 13 '05 #2
"Bruno Campanini" wrote
I am using a control MyTotal on a subform
footer to get a sum of all rows on the subform:
=Sum([Amount])
On the main form I have a control whose
controlsource is:
=Forms!FormName.Child.Form.MyTotal.
This displays the sum of the subform.
It works fine on Access 2000 but displays
an error in Access 2002. I
can't figure this one out.
lq


It should be = Me . [MySubForm] . Form ! [MyTotal]

Do you really use "Child" as the name for your subform?
May be "Child" is a reseved word for Access 2002.

Bruno


A form could have two SubForm controls at the same level -- which one would
be the "Child"? I don't have Access 2000 handy to try, but I would expect it
to give some kind of error. "Parent", on the other hand, is unambigous.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #3
Larry,
I renammed the subform "Child1" and still have the same problem.
I have always used the naming convention of naming a subform "Child"
and the second subform Child2, etc. It has been a big help in
simplifying code, such as allowing me to create generic code for
changing control attributes and the like.

I realized this problem went even deeper. In this user environment
there are two machines running Access2002 and this happens only on one
machine! Both are running Windows2000.

I am completely baffled.

When I go to the culprit machine, I installed this subform as a
continuous form (instead of a datasheet) which allowed me to see the
sum control ctlMySum in the subform's form footer containing the
controlsource "=Sum([Amount])"
On the offending machine, this control is blank! So the control on the
Parent form that has the controlsource
"=Forms!FormName.CHild.Form.ctlMySum" returns an error. However, on all
other machines it's fine.

lq

Larry Linson wrote:
"Bruno Campanini" wrote
> > I am using a control MyTotal on a subform
> > footer to get a sum of all rows on the subform:
> > =Sum([Amount])
> > On the main form I have a control whose
> > controlsource is:
> > =Forms!FormName.Child.Form.MyTotal.
> > This displays the sum of the subform.
> > It works fine on Access 2000 but displays
> > an error in Access 2002. I
> > can't figure this one out.
> > lq >
> It should be = Me . [MySubForm] . Form ! [MyTotal]
>
> Do you really use "Child" as the name for your subform?
> May be "Child" is a reseved word for Access 2002.
>
> Bruno


A form could have two SubForm controls at the same level -- which one

would be the "Child"? I don't have Access 2000 handy to try, but I would expect it to give some kind of error. "Parent", on the other hand, is unambigous.
Larry Linson
Microsoft Access MVP


Nov 13 '05 #4
laurenq uantrell wrote:

[snip]

What happened to your "q"? :-)

--
This sig left intentionally blank
Nov 13 '05 #5
I don't know what the problem is. Some things to check are:

(1) Was the install of Access successful on that machine? (If not,
uninstall and reinstall.)
(2) What are the differences in Operating System setup between the machine
where it works and the one where it doesn't work?
(3) Are there any differences in Access' Tools | Options between the
machine where it works and the one where it doesn't work?
(4) Are there _any_ differences in the front-end database (assuming you
are working with a front-end/back-end split database) on those machines?
(5) Are there any differences in the data being accessed on the two
machines?

Even with the answers to all these questions, it may not be obvious what the
problem is.

Larry Linson
Microsoft Access MVP
"laurenq uantrell" <la*************@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Larry,
I renammed the subform "Child1" and still have the same problem.
I have always used the naming convention of naming a subform "Child"
and the second subform Child2, etc. It has been a big help in
simplifying code, such as allowing me to create generic code for
changing control attributes and the like.

I realized this problem went even deeper. In this user environment
there are two machines running Access2002 and this happens only on one
machine! Both are running Windows2000.

I am completely baffled.

When I go to the culprit machine, I installed this subform as a
continuous form (instead of a datasheet) which allowed me to see the
sum control ctlMySum in the subform's form footer containing the
controlsource "=Sum([Amount])"
On the offending machine, this control is blank! So the control on the
Parent form that has the controlsource
"=Forms!FormName.CHild.Form.ctlMySum" returns an error. However, on all
other machines it's fine.

lq

Larry Linson wrote:
"Bruno Campanini" wrote
> > I am using a control MyTotal on a subform
> > footer to get a sum of all rows on the subform:
> > =Sum([Amount])
> > On the main form I have a control whose
> > controlsource is:
> > =Forms!FormName.Child.Form.MyTotal.
> > This displays the sum of the subform.
> > It works fine on Access 2000 but displays
> > an error in Access 2002. I
> > can't figure this one out.
> > lq
>
> It should be = Me . [MySubForm] . Form ! [MyTotal]
>
> Do you really use "Child" as the name for your subform?
> May be "Child" is a reseved word for Access 2002.
>
> Bruno


A form could have two SubForm controls at the same level -- which one

would
be the "Child"? I don't have Access 2000 handy to try, but I would

expect it
to give some kind of error. "Parent", on the other hand, is

unambigous.

Larry Linson
Microsoft Access MVP

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: erik | last post by:
Hi How can I egt all my data from my Access2002/XP-database over in a MySQL-database ? -- Erik R Nielsen Denmark
0
by: Lauren Quantrell | last post by:
I'm hoping someone can tell me if I'm doing the correct thing here or if there is a better way to do this with Access2K connecting to SQL Server 2K: Dim myConn As String myConn =...
1
by: Lauren Quantrell | last post by:
In an Insert Into statement I have used the Host_Name() function to identify which user has suppied a record to a table that holds temporary data. I'm using an Access2K front end. Code: Alter...
10
by: Blake | last post by:
I have created an Access2K front end application that connects to a SQLServer2K backend. I use this vba code to create the connection from the Access app: Dim strConnect As String 'make sure...
1
by: Lauren Quantrell | last post by:
It's been a long time since I dabbled with using a treeview control and the experience was not very positive when it came to distributing it to multiple machines. Unfortunateky I have a client...
0
by: Martin Reikenkamp | last post by:
Hallo, ich versuche gerade vergeblich eine XML-Datei (s.u.) in Access2002 zu importieren. Leider kommt nur die Struktur in der Access-Tabelle an und keine Daten (obwohl "Struktur und Daten"...
1
by: Bogdan Zamfir | last post by:
Hi, I have big troubles with an Access2002 application I wrote it under Acc2002 Romanian, and try to run it on Acc2002 US version, and I have the following troubles For some forms, Load event...
3
by: Rich | last post by:
I converted my A2K database(FE)to Access2002. It's a secured database, splitted to FE and BE. After the conversion, I cannot make MDE file. It says:"microsoft access ha encourted a problem and...
2
by: Steve | last post by:
I have been asked to convert an Access2002 database to Access2007. The database is used to manage a medium sized company. The company contact said that the existing database was put on a new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.