165d4 Why won't Access Run this Query?
Sign Up |  Live StatsLive Stats    Articles 37,330| Comments 177,266| Members 19,414, Newest foundloveandlost| Online 480
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Why won't Access Run this Query?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Passthrough Query SLOWS Access Query Editor Marc Information Technology 7 28-Jul-2006 08:42 AM
Access Query scucmd Information Technology 3 28-Jul-2006 08:40 AM
Where is Query in Access XP??? Bill Information Technology 5 28-Jul-2006 08:38 AM
Help on an Access Query! SurfRdude Information Technology 3 28-Jul-2006 08:31 AM
Query doesn't run in Access, but in Microsft Query Ken Information Technology 0 28-Jul-2006 08:24 AM


Tags
wont, access, run, query
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 12-Nov-2005, 22:39 PM
meyvn77@yahoo.com's Avatar meyvn77@yahoo.com
Guest
 
Posts: n/a
   
   
Why won't Access Run this Query?

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
UPDATE GIS_EVENTS_TEMP SET GIS_EVENTS_TEMP.FSTHARM1 =
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/7227-why-wont-access-run-this-query.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
HarmfulEvent.HarmfulEvent
WHERE (((HarmfulEvent.UnitId)=1) AND ((HarmfulEvent.ListOrder)=0) AND
((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber])),

GIS_EVENTS_TEMP.FSTHARM1 = HarmfulEvent.HarmfulEvent
WHERE (((HarmfulEvent.UnitId)=2) AND ((HarmfulEvent.ListOrder)=1) AND
((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]));


*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-Nov-2005, 22:39 PM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Why won't Access Run this Query?

You can't combine multiple WHERE clauses like that.

Separate them into two different queries, and run them separately.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


wrote in message
news:1131736690.677749.64370@g49g2000cwa.googlegro ups.com...
> UPDATE GIS_EVENTS_TEMP SET GIS_EVENTS_TEMP.FSTHARM1 =
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
> HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=1) AND ((HarmfulEvent.ListOrder)=0) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber])),
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
>
> GIS_EVENTS_TEMP.FSTHARM1 = HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=2) AND ((HarmfulEvent.ListOrder)=1) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]));
>



Reply With Quote
  #3 (permalink)  
Old 12-Nov-2005, 22:39 PM
meyvn77@yahoo.com's Avatar meyvn77@yahoo.com
Guest
 
Posts: n/a
   
   
Re: Why won't Access Run this Query?

Please tell me that there is a way around this I have a SQL server
query thats like 80 to these.
Your telling me Im going to have to break them up into 80 Queries?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227

Reply With Quote
  #4 (permalink)  
Old 12-Nov-2005, 22:39 PM
Smartin's Avatar Smartin
Guest
 
Posts: n/a
   
   
Re: Why won't Access Run this Query?

meyvn77@yahoo.com wrote:
> Please tell me that there is a way around this I have a SQL server
> query thats like 80 to these.
> Your telling me Im going to have to break them up into 80 Queries?


> UPDATE GIS_EVENTS_TEMP SET GIS_EVENTS_TEMP.FSTHARM1 =
> HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=1) AND ((HarmfulEvent.ListOrder)=0) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber])),
>
> GIS_EVENTS_TEMP.FSTHARM1 = HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=2) AND ((HarmfulEvent.ListOrder)=1) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]));


If all the queries follow this pattern, i.e.,

((HarmfulEvent.UnitId)= N ) AND ((HarmfulEvent.ListOrder)= N - 1)

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
you could write some vb code to loop from N=0 to N=80 or whatever and
either build the query on the fly or set up your UPDATE as a parameter
query.

--
Smartin
Reply With Quote
  #5 (permalink)  
Old 13-Nov-2005, 17:33 PM
Albert D.Kallal's Avatar Albert D.Kallal
Guest
 
Posts: n/a
   
   
Re: Why won't Access Run this Query?

  Donate Today!  
hum, why not change that "," to a and to join the where stuff together?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227

I never seen that syntax of using a "," to separate where clauses.

It should also be noted that you 2nd where clause is course a implied join,
and this is legal in msaccess.

However, I see a LOT of different sql dialect, and this is the first time
seen (or know) that you could simply separate "where" clauses by a ",".
(it might be a common place thing..but this is first time I noticed that you
could do this!! - so, I guess I learn something new every day).

Perhaps changing the "," to a "and", and also adding () around the 2nd set
of where will work?

Something like:

> UPDATE GIS_EVENTS_TEMP SET GIS_EVENTS_TEMP.FSTHARM1 =
> HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=1) AND ((HarmfulEvent.ListOrder)=0) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]))


and
(
>
> GIS_EVENTS_TEMP.FSTHARM1 = HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=2) AND ((HarmfulEvent.ListOrder)=1) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]));
>

)

Give the above a try, and note how I just added a "and" and a set of ()
around the sql...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Keeping Amrit Vela
Today 16:49 PM
12 Replies, 902 Views
How does Sikhi help you...
Today 16:16 PM
26 Replies, 915 Views
Do you believe in...
Today 15:08 PM
196 Replies, 4,080 Views
Occultism - Rejection in...
Today 14:04 PM
59 Replies, 2,586 Views
Panjabi
By Ishna
Today 13:43 PM
14 Replies, 282 Views
Black Sikhs?
Today 06:33 AM
20 Replies, 5,800 Views
Man Driving Without...
Today 05:06 AM
5 Replies, 138 Views
Request for assistance...
Today 04:24 AM
8 Replies, 90 Views
Losing My Religion: Why...
Today 03:03 AM
13 Replies, 350 Views
Health Exercise And...
Today 02:10 AM
1 Replies, 90 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 02:10 AM
176 Replies, 4,513 Views
How Religions Change...
Today 02:07 AM
1 Replies, 106 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:52 AM
313 Replies, 7,600 Views
Parkash Guru Amar Das ji...
Yesterday 17:07 PM
3 Replies, 84 Views
Serious challenges to...
Yesterday 16:49 PM
0 Replies, 151 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 17:45 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.49131 seconds with 32 queries
0