473,382 Members | 1,752 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,382 software developers and data experts.

run-time error 2471 'The object doesn't contain the Automation object 'qry_prodreport_ALL.SSN."

I'm getting this error: run-time error 2471 'The object doesn't
contain the Automation object 'qry_prodreport_ALL.SSN."

Here is the code:

Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As
Integer)

Dim strcount As Double, strpts As Double

strcount = Nz(DSum("[Miles]", "Productivity", "[SSN]=
qry_prodreport_ALL.[SSN]" & _
"and [Date] >= DateAdd(ww, -13, (Now))"), 1)
strpts = strcount / 13
Me.txtpts = strpts
End Sub

qry_prodreport_ALL definitely exists, and it returns a field called
"SSN." Is there some error in syntax that I'm missing.

Thank you

Mar 27 '06 #1
1 4981
li********@hotmail.com wrote in
news:11**********************@u72g2000cwu.googlegr oups.com:
I'm getting this error: run-time error 2471 'The object doesn't
contain the Automation object 'qry_prodreport_ALL.SSN."

Here is the code:

Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As
Integer)

Dim strcount As Double, strpts As Double

strcount = Nz(DSum("[Miles]", "Productivity", "[SSN]=
qry_prodreport_ALL.[SSN]" & _
"and [Date] >= DateAdd(ww, -13, (Now))"), 1)
strpts = strcount / 13
Me.txtpts = strpts
End Sub

qry_prodreport_ALL definitely exists, and it returns a field
called "SSN." Is there some error in syntax that I'm missing.


You can only have criteria that apply to the domain you've given for
your DSum(). That is, the "Productivity" table/query is the only
source you can use for criteria. Your 2nd argument needs to be a
query that joins Productivity and qry_prodreport_ALL, and get rid of
the SSN part of the criteria.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Mar 27 '06 #2

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

Similar topics

1
by: Swaroop C H | last post by:
Is there a Python equivalent of Perl's IPC::Run module http://search.cpan.org/dist/IPC-Run/lib/IPC/Run.pm ] ? Thanks! -- Swaroop C H Blog: http://www.swaroopch.info Book:...
5
by: Adrian | last post by:
Hi I want to be able to start a locally installed application from within a web page. So if our application is installed it is started when a user clicks a link on our page. I know or assume...
6
by: strawberry | last post by:
i have a db set up that i access using an ftp connection, and an sql script file that i wish to run, how do i go about doing so? tia
4
by: Brian Keating EI9FXB | last post by:
Hello there, I've created a worker thread that will handle events. To give this worker thead a run loop i've called Application.Run(); What call should i make to cause this thread to leave its...
4
by: sonu | last post by:
I have created an web page. I want run an exe when i click any button on that page. any help please Regards Amit Mishra
9
by: sunilkeswani | last post by:
Hi I need help with this. How do I call an external Avaya CMS Supervisor auto-script from Access? Please advise Regards Sunil
1
by: kirke | last post by:
I want to run excel in server. Server have IIS and MS SQL. My plan is, get data from MS sql and attach it in excel and run macro(vba) get result and save it as htm in server. I know it's...
0
by: joe1977 | last post by:
my macro in Publisher changes "123" into "321" (example) but I can't be able to run it. This is how far I get throught with PHP & Publisher: <? $pub = new COM('publisher.application') or...
1
by: Peter | last post by:
Hello, Our asp.net 2.0 application uses Microsoft JET provider. This driver is not available under Vista 64. However, this driver is avalable if a .NET application is forced to run as 32 bit...
2
by: goscottie | last post by:
I need to find a way to either 1. run and check all Validation controls (in my case one CompareValidator) and run client side javascript function. In this case I'll use <asp:Button>. So if all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.