Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / May 2008

Tip: Looking for answers? Try searching our database.

Access Query Enigma - WTF?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vincent - 10 May 2008 05:41 GMT
I have experienced something in Access that is completely
inexplicable and gives me shivers.  I was creating a query inside the
query wizard that I knew should return several records.  I ran the
query and it returned no results.  I was staring at the design of the
query and moved one of the tables slightly (I did NOT change the type
of join.  I simply nudged one of the tables).  After doing this, I ran
the query again and it returned several records.  Believe it or not.
I will be posting this enigma on YouTube soon for those who cannot
imagine this could happen.

    Can anyone, Microsoft employees included, explain why this would
occur?

Vincent
Tom van Stiphout - 10 May 2008 07:37 GMT
Post the link.
But even after that I still won't be a believer.

-Tom.

>     I have experienced something in Access that is completely
>inexplicable and gives me shivers.  I was creating a query inside the
[quoted text clipped - 10 lines]
>
>Vincent
Dean - 10 May 2008 10:01 GMT
This is an Enigma.  What version of Access and or Wndows?  Also, how
often do you compact your db?
Albert D. Kallal - 10 May 2008 19:35 GMT
It is certainly possible you're dealing with a damaged database, or perhaps
even damaged indexes.

Furthermore, moving a table little bit could force the query processor to
build a new query plan, because perhaps it thinks that you've modified the
query again. Forcing the database engine to *re* build a new query plan
could perhaps cause it to see some new records.

On the other hand, perhaps there some default like now() that has a time
based criteria that actually changed or rolled over during the time when you
changed the table, and it simply occurred at the same time. (for example of
this occurred at twelve midnight, you could have new date criteria now show
up).

On the other hand, if you're saying this is a completely repeatable
occurrence that you can do over and over, then something else strange is
indeed going on here.

So, if this was just a one time occurrence, then I not much surprised at
all, since changing things in a query in design mode causes the query
processor to rebuild and recompile the query plan and even the statistics
that JET will use for the query.

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

lyle fairfield - 11 May 2008 02:47 GMT
Johnnie Walker?

>      I have experienced something in Access that is completely
> inexplicable and gives me shivers.  I was creating a query inside the
[quoted text clipped - 10 lines]
>
> Vincent
Larry Linson - 11 May 2008 22:38 GMT
> Johnnie Walker?

How dare Ol' Johnny be messing around with our Queries? Does he work for one
of those other database companies?

Larry

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.