473,544 Members | 1,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access crashes on save of sql view

ltworf13
7 New Member
I have have 2 tables I query, when I create the query either in sql format or design view. then run it shows the data I want. Then if I try to save the database closes with no error msg.
Expand|Select|Wrap|Line Numbers
  1. SELECT DatePart("m",[ISC_Data_Apr_Jun]![Month]) AS ReportMonth, ISC_Data_Apr_Jun.EmpID, ISC_Data_Apr_Jun.EmpName, IIf([ISC_Data_Apr_Jun]![Att]>=[Scenario_BAHT]![Att] And [ISC_Data_Apr_Jun]![AvgQScore]>=[Scenario_BAHT]![QA] And [ISC_Data_Apr_Jun]![BAHT]<[Scenario_BAHT]![AHT1] And [ISC_Data_Apr_Jun]![BAHT]>[Scenario_BAHT]![AHT2], [ISC_Data_Apr_Jun]![BAHT_Agg_Payout]+ [ISC_Data_Apr_Jun]![Attendance_Payout]+ [ISC_Data_Apr_Jun]![PR_Payout]+ [ISC_Data_Apr_Jun]![AvgQscore_Payout],0) AS Test_BAHT
  2. FROM Scenario_BAHT INNER JOIN ISC_Data_Apr_Jun ON Scenario_BAHT.Month = ISC_Data_Apr_Jun.Month
  3. GROUP BY DatePart("m",[ISC_Data_Apr_Jun]![Month]), ISC_Data_Apr_Jun.EmpID, ISC_Data_Apr_Jun.EmpName, IIf([ISC_Data_Apr_Jun]![Att]>=[Scenario_BAHT]![Att] And [ISC_Data_Apr_Jun]![AvgQScore]>=[Scenario_BAHT]![QA] And [ISC_Data_Apr_Jun]![BAHT]<[Scenario_BAHT]![AHT1] And [ISC_Data_Apr_Jun]![BAHT]>[Scenario_BAHT]![AHT2], [ISC_Data_Apr_Jun]![BAHT_Agg_Payout]+ [ISC_Data_Apr_Jun]![Attendance_Payout]+ [ISC_Data_Apr_Jun]![PR_Payout]+ [ISC_Data_Apr_Jun]![AvgQscore_Payout],0)
  4. HAVING (((IIf([ISC_Data_Apr_Jun]![Att]>=[Scenario_BAHT]![Att] And [ISC_Data_Apr_Jun]![AvgQScore]>=[Scenario_BAHT]![QA] And [ISC_Data_Apr_Jun]![BAHT]<[Scenario_BAHT]![AHT1] And [ISC_Data_Apr_Jun]![BAHT]>[Scenario_BAHT]![AHT2], [ISC_Data_Apr_Jun]![BAHT_Agg_Payout]+ [ISC_Data_Apr_Jun]![Attendance_Payout]+ [ISC_Data_Apr_Jun]![PR_Payout]+ [ISC_Data_Apr_Jun]![AvgQscore_Payout],0))>0));
  5.  
Aug 22 '07 #1
1 1400
MMcCarthy
14,534 Recognized Expert Moderator MVP
Why have you got a Group by statement as this is not an aggregate query that I can see?

Also I don't understand the logic of your having clause.
Sep 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3673
by: Eric Nelson | last post by:
Here's what happens. I created the query below in a copy of my BE & it works fine. But in the FE: If I enter query into SQL view & hit "!" I get correct results (a list of families w/nonzero balance). However, every time I try to save it Access crashes (error report &
2
3219
by: Jonathan Goldman | last post by:
Hi- I have a relatively simple report that I open in an Access '97 VBA procedure, using the Docmd.OpenReport "rptName", acViewNormal syntax. The problem is that doing this usually crashes Access! No error message is given, the thing just vanishes! Why? How do I fix this?
2
19044
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. Interestingly, it doesn't crash if I run the app and open it in form view! Just if I attempt to design it. If I compact/repair, it allows me to...
0
1858
by: jphelan | last post by:
I have a subform that works fine until you import it into a new database when it crashes if you try to open it in either disign or form view. The form, "Attendees_Subform" in my application was pattern after the same form used in the MS template, "Event Management.mdb" application that is downloaded from the MS Template Gallery on their...
0
3273
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
8
9707
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my problem: my vb.net program has problems with UNC. If the UNC server is restarted or goes off-line, my VB.net program crashes. The code for UNC...
3
2890
by: Mike | last post by:
Hi, Im trying to create a crosstab query with fewer than 255 headings (about 50), but it crashes when I try to save after writing the heading names in the query property "column headings". My list is pretty long, but far from having 255 entries. I specify which columns I want so that it doesn't give me an error message because a field...
3
7751
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window appears. It doesn't happen every time, and using the Zoom window works fine. It appears that it only happens when I want to modify an existing...
11
3139
by: sjakie.pretpaleis | last post by:
The database I'm working in is about 6mb. It consist of a few local tables, and about 60 linked tables, around 130 queries, 33 forms, 10 reports, 1 macro and 17 modules. Everytime after I change something in for example a module I close Access. When I open it, Access crashes. My last change was a new linked table, a query and a new form....
0
7429
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7777
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5916
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5301
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4922
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3420
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
671
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.