A2003 Query Runs Under XP, Not Vista

Feb 26, 2008

I apologize up front for how long this is, but the queries involved are a bit complex.

I developed a database in Access 2003 running on XP sp2 to score events for our dog club. Everything works. I recently had to migrate to Vista. I installed Access without a problem. No changes to the database were made. Almost everything works except for a few queries. I continually get the error "Object invalid or no longer set." This is not running on a network - it is local on the hard drive. Setting XP compatibility mode and runing as administrator do not help.

The query that is actually causing the problem is the third in a chain, meaning it queries a dataset produced by another query, which in turn queries a dataset produced by a third query. This all works under XP.

I have narrowed the problem down to the ORDER BY statement in the query (I prefer to work in SQL). If I remove one of the sort criteria, everything works, except the results are displayed in the wrong order. It does not matter if I click the "run query" button on my form, or simply execute the query from the list of queries, the same error occurs. This is where I'm stuck.

Here is the chain. This query pulls data out of multiple tables and performs some point total calculations. This one is rather complex, but works fine. It produces a blob dataset of all entries for all events and sets points for each entry.

SELECT tblResults.Event_ID, tblEvents.Event_Name, tblClass.Class, tblDogs.Dog_Name, tblDogs.ID, tblDogs.Owner, tblDogs.Sex, tblResults.Dog_Wt, tblResults.Cert, tblResults.Ex, tblResults.Cplt_Wt, tblResults.Time, tblResults.Final_Wt, tblResults.Dist, tblResults.Place, IIf(tblResults!Cplt_Wt<400,0,5) AS Bonus, IIf([Bonus]=0,0,IIf(tblClass!Class="D",(tblEvents!D_Count-(tblResults!Place-1)+[Bonus]),IIf(tblClass!Class="C",(tblEvents!C_Count-(tblResults!Place-1)+[Bonus]),IIf(tblClass!Class="B",(tblEvents!B_Count-(tblResults!Place-1)+[Bonus]),IIf(tblClass!Class="A",(tblEvents!A_Count-(tblResults!Place-1)+[Bonus]),(tblEvents!O_Count-(tblResults!Place-1)+[Bonus])))))) AS Points, Round(tblResults!Cplt_Wt/tblResults!Dog_Wt,2) AS xbdywt
FROM tblClass INNER JOIN (tblEvents INNER JOIN (tblDogs INNER JOIN tblResults ON tblDogs.ID=tblResults.Dog_ID) ON tblEvents.Event_ID=tblResults.Event_ID) ON tblClass.Weight=tblResults.Dog_Wt;


That resulting dataset feeds the next query, which also works fine. This one sums the points for each entrant by class for the season, only selecting entrants that have been in 3 or more events.

SELECT DISTINCTROW qryAll_Results.Class, qryAll_Results.Dog_Name, qryAll_Results.Owner, Sum(qryAll_Results.Points) AS Points
FROM qryAll_Results INNER JOIN qryPulls_Entered ON qryAll_Results.ID=qryPulls_Entered.ID
WHERE qryPulls_Entered.CountOfID>3
GROUP BY qryAll_Results.Class, qryAll_Results.Dog_Name, qryAll_Results.Owner, qryAll_Results.ID;


This last query is the one causing the headache. This one pulls the 10 entrants with the most points for a class, sorts them by points, then assigns 1st-10th place.

SELECT TOP 10 qryOverall_Totals_All_Classes.Dog_Name, qryOverall_Totals_All_Classes.Owner, qryOverall_Totals_All_Classes.Points, ((SELECT COUNT(*) FROM qryOverall_Totals_All_Classes AS T WHERE T.Class = "A" AND T.Points > qryOverall_Totals_All_Classes.Points)+1) AS Place
FROM qryOverall_Totals_All_Classes
WHERE (((qryOverall_Totals_All_Classes.Class)="A"))
ORDER BY qryOverall_Totals_All_Classes.Class, qryOverall_Totals_All_Classes.Points DESC;

If you remove 'qryOverall_Totals_All_Classes.Points DESC' from the ORDER BY statement, the query runs. If you leave it in, it generates the error "Object invalid or no longer set". I've tried using the alias, but that didn't work either.

Any thoughts? I can post the database somewhere if someone needs to see the whole thing.

View Replies


ADVERTISEMENT

Password Issue: A2003/A2007 Compatibility

Feb 4, 2008

Hi,

I've been working on a database at work in Access 2003. I need to speed up though, so I thought I'd it bring it home on a USB memory stick and work on it here using Access 2007. I do this all the time with Word and Excel files and just take care to save them in 2003 version so I can use them back in the office.

But when I try to open this database, it's asking for a password. I know for a fact I haven't set any password on it, because I wouldn't know how to. Holding down the shift key is ineffective too.

Is Access 2007 not backwards compatible or something?

View 6 Replies View Related

Query Runs All Day

Feb 28, 2007

Dear pro,
I am having difficulties running a simple query that it runs all day and I have to kill it at the end of my date because it does not finish. Here is the statement that I would like some suggestions on how to improve it for faster results:
SELECT code, acct nbr, date, user, sum(amt)
FROM Tbl a
WHERE code IN
('AB',
'BC',
'CD',
'AA',
'BB',
'CC',
'ZZ'
)
AND date BETWEEN TO_DATE ('20070101', 'YYYYMMDD')
AND TO_DATE ('20070131', 'YYYYMMDD')
group by code,acc nbr,date,user

thank you...in advance for all your help..

Wilman.

View 1 Replies View Related

Query Runs Slowly

Aug 8, 2006

I have a table with a rotating work order number (from 1 to 9999 then starts over) and because there may be more than one record with the same work order number I need to find the most recent one. Here's the query I'm using the find the most recent record for each work order number:
SELECT * FROM [Work Orders] AS wk1
WHERE NOT EXISTS(
SELECT * FROM [Work Orders] AS wk2
WHERE wk1.[Work Order #] = wk2.[Work Order #] AND
wk1.[Call In Date] < wk2.[Call In Date]
);

Right now the table has a litttle over 10000 records and it takes anywhere from 10 seconds to 60 seconds to return the results. Is there a way I could possibly speed up this query?

View 2 Replies View Related

Query Is Too Complex... On Report, But Query Runs Fine

Oct 18, 2005

Hi...

I have a query that when I run it normally (just click on it) then it runs fine. (It is a union query, getting it's data from 8 other queries (who has their dependancies)

But when I want to run a report from it, Access gives me an error saying "query is too complex".

I am flattered, but I would prefer access to work than say I write stuff that is too complex for it. :cool:

Any ideas?

I am confused by the fact that it runs when I double click the query, but the report bugs it out.

-Reenen

View 1 Replies View Related

Update Query No Longer Runs As Transaction.

Feb 22, 2008

Hi,
I have been using the following query, literally for years, without any changes. I run it from code using db.execute, and I do use the dbfailonerror option.

UPDATE TST3 SET [date] = Mid([timedate],8,2) & '/' & Mid([timedate],10,2) & '/' & Right([timedate],4), [time] = Left([timedate],2) & ':' & Mid([timedate],3,2) & ':' & Mid([timedate],5,2), Serial = [serial] & '3';

One of the things it does is to add a '3' to the end of the [serial]. [serial] is the primary key in the TST3 table. You might think that there would be a problem if, say, I have a list of serials containing
35
56
1
13
and I'm trying to update them to
353
563
13
133
But this has worked OK in the past. NOW I'm getting a KV Error when it tries to update the 1 to 13, because there's already a 13 in the table.

Even stranger, when the query fails, all the rows BEFORE the offending record DO get updated. So the query fails, and I end up with:
353
563
1
13
(and yes, I DO have dbfailonerror set)

So, it looks to me as if update queries are no longer running as transactions.
I am pretty certain that action queries have always been run transaction-wise in the past... if the query fails, the whole thing should fail. WHY is the transaction processing no longer working for this update query? Has anyone else noticed this?

I recently ran microsoft update and am now running
Access 2002 (10.6771.6830) SP3.

View 7 Replies View Related

User Inputs Table When Query Runs.

Mar 14, 2008

I have a database with 96 tables.
8 tables per month
one query pulls the desired information.

My question is this, currently the query looks to all the January Tables.

Can I configure one query to request user input(month) and then the query looks to the tables based on the users input(month).

View 4 Replies View Related

Append Query Adding All Records Evertime It Runs

Aug 8, 2005

I have an append query that everytime it runs it will simply duplicate the records. ex.. sample table has 11 records if you run it again the tableB will now have 22 records. I need it to only update the records, so if someone makes in change / new record in tableA it will only update the records in TableB.
I have the Primary Key set to Yes no duplicates.
TableA Primary Key is ID
TableB Primary Key is CustomerID

Thank you,

Chuck

View 3 Replies View Related

Query Runs When A Policy Number Is Input In A Form

Jan 26, 2007

I have a form set up and would like to have field update to a table when a policy number is input into the form. The fields are extracted from a linked table and are not viewed on the form but need to be written to a table to create a report. I'm confused on the sets to take to handle this. I think i need to use the "onchange" property and set up a macro that runs a query but how does the query write to the table?

View 1 Replies View Related

Anyone Used Access 97 With Vista?

Apr 1, 2007

I've been perfectly happy with Access97 and WindowsXP.

But my laptop's circuitboards have deteriorated, and I need a new computer. I'm wondering what the real-world has to say about using Access 97 with Windows Vista. Does it run seemlessly? Please say yes.

I have an application which I've been improving since 1998. I tried a demo of Access 2007, and did not like the way my app interfaced with it, and I don't relish a whole lot of reworking. But I don't want to buy a laptop with an obsolete operating system.

Tell me you've used it and it's wonderful.

Best to you all.

-Curt

View 2 Replies View Related

Another Vista Victim

Dec 27, 2007

I have a new computer with Vista Business and MS Access 2003. ALthough I'm not sure I have Access 2003 because it keeps blowing up with lugubrous error messages

1) Cannot find field ''
2) Out of Memory (I have 2GB and this happens with one dbs open)

I'm dying a slow death due to my vistalobotomy

What is the status of Office and Vista Updates?

Is anyone else having this problem?

Thanks for your help.

View 14 Replies View Related

Access And Vista Problem

Aug 30, 2007

Hi, i have a problem with an access database, well 2 problems. first is i don't know much about databases. the second is at work we installed 3 computers in an office with windows vista o/s. they then had a company come in and install software for their business. They were using office 2000 access database on xp previously. The company installing their software copied the access 2000 database to the vista target machines, i believe they may have converted the database to access 2003 version when doing this. The problem is the database doesn't work and they have called us back in to sort out the problem. Well we installed service packs, fixes, patches etc and googled a lot but found no simlar problems or solutions, in short we are stumped. I think the database is compiled into an app or something with switchboard etc, which i think means i can't access it? anyway it opens up with a logon form to get into DB, i enter the username and password and click ok and it gives a message saying:

"the expression on click you entered as the event property setting produced the following error"

it goes on to say there may be problem with an "event,function or macro"

on vista with office 2003 it lists several possible causes which i havent access to right now.

i have now tried it on my own pc with xp pro and office 2007 and it basically gives the same message as above but the list of possible causes is reduced to this one:

"This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For example, if the OnOpen property of a form is set to =[Field], this error occurs because Access expects a macro or event name to run when the event is fired"

Can anyone explain or point me in the right direction of where to get a solution. I think this is something for a programmer to solve and possibly something that the original database programmers should be looking at rather than me. am i right?

cheers all!

View 6 Replies View Related

Access Runtime On Vista

Nov 9, 2007

I created an Access Runtime Database Download on Windows XP. One of my clients downloaded the db to Windows Vista. The installation went fine and he was able to populate the database with no problem. However, now he needs to send me back the data and we cannot seem to access any data files. The backend.mdb file appears to be blank, even know the data appears on the front end. We have tried searching the computer to find any hidden files it might be saving the data to and there doesn't appear to be any. I have tried copying the entire folder containing both the frontend and the backend to a jump drive and looking at the data on a different computer and it appears to be blank. This doesn't seem to happen on any other OS. Since it is a runtime version of Access, I am not able to export any files or even view anything of administrative value within the DB. When I look at the backend.mdb in Explorer, the modified date is old, so it doesn't seem to be adding the data to the backend, even though it is theoretically linked to it. Does anyone know where this data might reside or of a workaround of how to extract this data???

Thanks,

Shelley

View 5 Replies View Related

Access 2000 Compatibility With Vista

Jan 29, 2007

Will Access 2000 run on Vista? I've heard that it will, but I would like to verify that before I purchase the upgrade. I currently use Access '97.

Also, does Access 2000 have to be "product activated" like the newer versions?

Thanks.

View 1 Replies View Related

Important Notice To Vista Users!

May 28, 2007

Important notice from Micro$oft's Knowledge Base:

When you open or are using a Microsoft Office Access database on a computer that is running Windows Vista, you may encounter one or more of the following issues:
• Access appears to stop responding.
• Access responds very slowly.
• Access exits unexpectedly or crashes.

For the complete article and possible work arounds goto:

http://support.microsoft.com/?kbid=935370

View 9 Replies View Related

Vista And Access 2007/2003

Jun 26, 2007

I have a customer that did not read my recommended hardware specs and bought a Vista machine with Office 2007 preloaded on it.

My application uses a Access 2003 database and it is working fine in the Vista environment. The database utilizes Access security and has a database password.

My problem is that I can't see any data that has been entered! I have ran queries and opened the tables, but it is as if there is no data in the tables. However, my application can still read the data...this is a very weird problem! This is a tech support nightmare!

Has anyone had a similar problem?

Thanks for your help!

View 5 Replies View Related

Form Errors - Vista Issue

Mar 11, 2008

Hi All,

I have a simple form with 3 subforms. I have a 1 data field on the main form for each subtotal of the subforms as well as an overall total field.

I have the following code in the subtotal fields:

SETot=IIf(DCount("[ID]","qryExpenses")=0,0,DSum("[Reimbursment]","qryExpenses"))
DTETot=IIf(DCount("[ID]","qryTravelExpenses")=0,0,DSum("[Expense]","qryTravelExpenses"))
RTETot=IIf(DCount("[ID]","qryTravelExpensesR")=0,0,DSum("[Amount]","qryTravelExpensesR"))

The total field then contains the following code:

Total=nz([SETot])+nz([DTETot])+nz([RTETot])

The queries all run off data elsewhere on the form, and i have triggered a "Form Refresh" macro on each of the changeable fields of the form, (so for example when changing the start date for the period the form then refreshes and re-runs the queries and updates the forms.

All things work perfectly on our windows XP systems but the rare few Vista operating systems causes these form fields to have errors. Basically the 3 subtotal fields don't appear to refresh when they are supposed to, and the total field shows as "Error"

It is actually a fairly cosmetic thing as the more important reports are generated without error, but it is something i would like to fix anyway, simply to keep the masses happy.

Would be very appreciative of any assistance or idea's on what's happening, or perhaps what's not happening here.

BTW: All have MS Office 2007, None do not have Administrator access. All XP machines work perfectly, all vista machines have these errors.

Cheers
Nathan

View 4 Replies View Related

Problem Running Access 2000 MDE On Vista

Feb 16, 2007

Hi there - hopefully someone can help me out, as we've got clients waiting on my response to this problem!!! :eek:

Anyway, my company produces an Access 2000 MDE which we ship with the Access 2000 runtime (just in case our clients don't have full Access installed)

We've had a number of calls saying that our app doesn't run on Vista, and the error provided points towards a reference problem. However, when I load the MDB on Vista using Access 2007, there are no reference issues.

Is this problem related to Access 2007 reference ("Microsoft Access 12.0 Object Library") somehow being used instead of the Access 2000 one? ("Microsoft Access 9.0 Object Library") - I am about to try uninstalling Access 2007 and running the app again to see if that helps...?

Any help greatly appreciated!

Baz

View 1 Replies View Related

Vista And Access 2003 Reference Issue

Jun 7, 2007

I am using Access 2003 on a vista Business machine and i get an error:

'Function is not available in expressions in query expression Format([Period],"mmm-yy")'.

I also have other problems with functions in queries ie DateAdd etc.

Any solutions?

View 2 Replies View Related

MS Access 2003 Running On Vista Home Basic

Oct 7, 2007

hi there,

i'm thinking about upgrading my operating system from XP to Vista Home Basic, but curious if any users have have experianced any dramas running Access 2003 SP3 on the Vista platform? or shouldnt there be any mayjor problems.



regards


Colin

View 2 Replies View Related

Access 2007: Wireless Network Problem On Vista

Nov 7, 2007

Hello,

I found a somewhat related thread but thought I would post a new one just in case my problem happens to others who were 'forced' to "upgrade" to Windows Vista Home Basic when buying a new machine....

Okay, no more complaining, here's the issue:

I have a small (8 MB) Access 2007 database stored on a machine in the office which is running Windows Vista Home Premium. There are two other machines running Windows XP Home (SP2) that can connect to the Access 2007 database with no issues.

But on my Dell Inspiron Vista Home Basic machine, I cannot successfully open the database stored on the Home Premium machine. I CAN see this database, I can see other files and open/copy them, but I cannot open the database. I am attempting to do this using the wireless connection.

I tried running these two commands as the administrator (found on another forum) because I think this is more of a network problem rather than an Access 2007 problem specific to Windows Vista Home Basic


netsh interface tcp set global rss=disabled
netsh interface tcp set global autotuninglevel=disabled

But these two commands did nothing.

I should also point out that when this database is stored on an XP machine (one of the others in the office) the database opens just fine on this Vista Basic machine!

I'm confused and frustrated! Any help is very much appreciated.

Thank you,
Mike

View 8 Replies View Related

Vista, Ms Access & Windows Server 2003 Corruption?

Apr 3, 2008

In our company we use a windows 2003 server. Our database is ms access 2002. The back end of the db is situated in a directory on the primary HD of the server.
All our workstations use windows professional. The DB works great when inputting data from workstations using widows pro.

I use a vista (ultimate) laptop. It appears that when I enter data from my vista laptop at times it corrupts the backend of the db. None of the other workstations do this.
Is vista a problem here in this situation?

View 1 Replies View Related

Access 2002 Runtime Install Asking For Windows NT SP6 Installing On Vista RC2 5840

Dec 28, 2006

Hi everyone.

Have been testing installation of Office XP Developer Access 2002 runtime package created using the package wizard on a WinXP Pro SP2 machine, for installation on a Vista RC2 5840 machine.

After installing the latest necessary updates such as Office XP Developer SP1 among others which were essential to remove the Path/File error I had, A new error displayed itself as soon as the runtime install package launched.

-------------------------------------------------------------------
Visual Basic 6.0 Setup Toolkit (Error Window Title Bar)

The Office System Pack cannot be installed on this system because it requires Windows NT Service Pack 6 or later.
-------------------------------------------------------------------

I assume Windows NT SP6 has no relevance to Vista ???

Maybe some other update will help here. I have googled for hours to no avail.

Any help greatly appreciated.

Thank you and best wishes for 2007.

Joe.

View 14 Replies View Related

DB Runs Slow Over Network

Sep 18, 2006

I have a 16Mb DB. The intention is for users to access this over the network without copying onto their local machines.

At present, many of the forms are located on 1 master form and they are all subforms on tabs. There are a lot of calculated control boxes on the forms, and these seem to be very slow to bring back the data over the network whereas on my local machine, the data is displayed in a couple of seconds.

COuld this be sped up somehow? Maybe using queries or other methods?

View 12 Replies View Related

Hide Toolbar When Program Runs

Jul 20, 2006

I have create my first program. When you click on the program it runs (I am an expert now!) But when I want it to run, I want it to hide the toolbars on the top so no one can alter it. Any suggestion?

View 1 Replies View Related

Printing Report Re-runs All Queries

Jan 31, 2008

I have a report with several subreports which run agains a very large table. If I decide to print the report after examining it, all of the underlying queries must run again. Is there any way around this to avoid this delay, other than exporting as rtf or snp?

Thanks,

Randy

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved