Query 2 Things At Once
Sep 13, 2007
Hi,
I have a membership db with 120 members in it. Each record form includes a dropdown field for 'status' (training completed, no training, certificated etc), and another dropdown for 'profession' (childcare, nursing, education etc)
I am able to run 2 separate queries;
I can run a query to view all those who have completed training using
Like "*" & [Enter Status] & "*"
And I can also query the professions with Like "*" & [Enter Profession] & "*"
What I would like to do is to query members who are in education but have had no training yet. Is there any way I can do this?
Many thanks
Adrian
View Replies
ADVERTISEMENT
Jul 13, 2005
Hi there,
I need to pick someone's brains with the few queries I have with Access listed below.
1:- Emailing data entered on a form.
I have a made a rough call logging datababse, this allows users to log information about calls that they take. From time to time it will be required for the user to submit a refund request. What I am wanting to do is have this on a seperate form that the user can open and have it automatically populate with some of the information from the main call log form. Once they have completed the credit request form I would like to have a button on there that they can click which will email that record to a pre-defined email address with a pre-defined subject.
2:- Populating a Excel spreedsheet with data from a particular record
I have a form where various bits of customer information is stored, Is it possible to create a button that will automatically export certain fields from the form and put them into a spreedsheet in the appropriate fields.
3:- Linking data from one form to another
On a form I have a field for Support Agent, What I would like to do is when someone selects this agent from a drop down list that persons details automatically fill into the contact fields on this form. Can this be done?
Sorry if these are a bit silly but as you can tell I am a access muppet
View 1 Replies
View Related
Nov 2, 2005
Hello all !
I am kinda new to access and made a transport database but it needs some changes which are out of my knowledege so i am hoping that you guys can help me out. There are the 2 things that i would like to do in my forms:
1=, I have a form where all the new cars are added to DB. Fields are Vehicle Code, Type, Brand, Model and Model year. Then I have a transaction form where vehicles are either assigned to employees or to garage etc.. What i would like to do in this form is that when i select a Vehicle Code, the remaining fields i.e. Type, Brand, Model and Model year of that partcular Vehicle Code should appear in thier respective fields of the transaction form.
2=, Now a little difficult part, in the same transaction form i want a field where the name of the current username appears and also a field with current date.
Now moving on to Transaction Type thingy. I want to two options button ( Issue Vehicle and Cancel Vehicle). If option " Issue Vehicle" is selected, a field i.e. a combo box consisting of To Employee and To Garage appears. And then when "To Employee" is selected two fields i.e. Employee No. and Name appear in a kind of frame.( data of both these fields are in other table and will appear in combox boxes). When "To Garage" is selected a field "reason" appear in a frame in place of above stated two fields.
I hope i am making some sense. I know i have to make a table for all these fields but dunno how to do all these things in forms..
Looking forward to your replies and thanks in advance.
View 10 Replies
View Related
Apr 14, 2006
Hey guys..
I have a form that displays inventory of goods.
there is a list box with a list all property. If they items are sold a sales order number appears next to it. Now with that in mind how can i have something that if there is a sales order number on that item then highlight it with a color?
View 1 Replies
View Related
Nov 21, 2006
I'm fairly new to Access (2000 is the version im using), and I'm not sure how to do several things within a form:
1) make cursor in a text box jump to the front (left) when clicked on
2) Lock (and grey out) a text box once data has been entered into another
3) assign a field to correspond with another, and to have this shown on the form (ie: having a list of names and their corresponding phone numbers assigned to each; then on the form, having a combo or list box with the names that a user can select- once a name is selected, their phone number appears automatically in another text box)
4)Locking screens or subforms when moving on to another (either by pressing a button to open another form, or by selecting a field in another subform)
thank you in advance for your help and advice
View 1 Replies
View Related
Aug 5, 2005
Hi,
I'm having a realllllly frustrating problem. I'm trying to enter the number 101.1 in a field, but whenever I enter it and hit tab to move to the next field it just truncates the number to 101. I've changed the number type, the number of decimal places, ect - everything! But it still changes my 101.1 to 101 after I move to the next field.
Help muchly appreciated.
View 8 Replies
View Related
Sep 21, 2005
Hello.
I want to prevent people accessing the control boxes on a 'satalite' mdb. I have hidden the control at the top through the start up options, but havent prevented the special keys as I occassionally need to get in this database for error fixing and such like. I want to know if I can put a password on this function, so that if they know it and try it it asks for a password before opening the control windows/table pages etc.
does anyone know if this is poss and if so how too ???
Thanx in advance for your time
View 2 Replies
View Related
Feb 13, 2006
Sorry for posting this here but it doesn't fit in just one catagory.
I'm having a bit of trouble using a manual input table and ODBC table to filter information through query into form view. Let me shed a little light on what's, what.
I'm looking at adding the totals of hours scanned/worked (sum of periodOfEvent) on job per "workcenternumber" (Scanning hour report - table [ODBC] SQL database on another server) then subtracting them from the hours given (job planning table - table [manual input]) to display hours remaining on project through query. [ITEMA]-[ITEMB]
Here's the problem: I can filter workcenternumber in the ODBC table "Scanning Hour Report" to display the various work center numbers, in this case it would be the following items:
BAL-HIGH
BAL-LOW
CM-TECH
CR-TECH
DW-JNR
DW-SNR
ENG
FS-JNR
FS-SNR
MS-HIGH
MS-LOW
MS-MED
MS-TECH
QA-TECH
SB-TECH
WB-BOIL
WB-HEAT
WB-WELD
WM-TECH
now I'm sitting with a query for each of these work center numbers with each query looking up hours given & subtracting hours worked to give you x amount hours remaining. Here are two example of these queries:
-------------------------------------------------------------------------------
--==1==--
SELECT DISTINCTROW [Scanning Hour Report].WBSElement, [Scanning Hour Report].WorkCentreNumber, [Job Planning].[Project Number], [Job Planning].Customer, [Job Planning].Description, [Job Planning].[Planned Start], [Job Planning].[Progress %], [Job Planning].[Planned Finish], [Job Planning].[Actual Finish], [Job Planning].Consultant, [Job Planning].Team, Sum([Scanning Hour Report].PeriodofEvent) AS [Sum Of PeriodofEvent], [Job Planning].[BAL-HIGH Hours Given]-[Sum Of PeriodofEvent] AS [Hours Remaining BAL-HIGH], [Job Planning].[BAL-HIGH Hours Given]
FROM [Job Planning] INNER JOIN [Scanning Hour Report] ON [Job Planning].[Project Number] = [Scanning Hour Report].WBSElement
GROUP BY [Scanning Hour Report].WBSElement, [Scanning Hour Report].WorkCentreNumber, [Job Planning].[Project Number], [Job Planning].Customer, [Job Planning].Description, [Job Planning].[Planned Start], [Job Planning].[Progress %], [Job Planning].[Planned Finish], [Job Planning].[Actual Finish], [Job Planning].Consultant, [Job Planning].Team, [Job Planning].[BAL-HIGH Hours Given], [Job Planning].[BAL-HIGH], [Job Planning].[MS-TECH], [Job Planning].[MS-TECH Hours Given], [Job Planning].[BAL-LOW], [Job Planning].[BAL-LOW Hours Given], [Job Planning].[CM-TECH], [Job Planning].[CM-TECH Hours Given], [Job Planning].[CR-TECH], [Job Planning].[CR-TECH Hours Given], [Job Planning].[DW-JNR], [Job Planning].[DW-JNR Hours Given], [Job Planning].[DW-SNR], [Job Planning].[DW-SNR Hours Given], [Job Planning].ENG, [Job Planning].[ENG Hours Given], [Job Planning].[FS-JNR], [Job Planning].[FS-JNR Hours Given], [Job Planning].[FS-SNR], [Job Planning].[FS-SNR Hours Given], [Job Planning].[MS-HIGH], [Job Planning].[MS-HIGH Hours Given], [Job Planning].[MS-LOW], [Job Planning].[MS-LOW Hours Given], [Job Planning].[MS-MED], [Job Planning].[MS-MED Hours Given], [Job Planning].[QA-TECH], [Job Planning].[QA-TECH Hours Given], [Job Planning].[SB-TECH], [Job Planning].[SB-TECH Hours Given], [Job Planning].[WB-BOIL], [Job Planning].[WB-BOIL Hours Given], [Job Planning].[WB-HEAT], [Job Planning].[WB-HEAT Hours Given], [Job Planning].[WB-WELD], [Job Planning].[WB-WELD Hours Given], [Job Planning].[WM-TECH], [Job Planning].[WM-TECH Hours Given]
HAVING ((([Scanning Hour Report].WorkCentreNumber)="BAL-HIGH"));
--==2==--
SELECT DISTINCTROW [Scanning Hour Report].WBSElement, [Scanning Hour Report].WorkCentreNumber, [Job Planning].[Project Number], [Job Planning].Customer, [Job Planning].Description, [Job Planning].[Planned Start], [Job Planning].[Progress %], [Job Planning].[Planned Finish], [Job Planning].[Actual Finish], [Job Planning].Consultant, [Job Planning].Team, [Job Planning].[MS-TECH Hours Given], Sum([Scanning Hour Report].PeriodofEvent) AS [Sum Of PeriodofEvent], [Job Planning].[MS-TECH Hours Given]-[Sum Of PeriodofEvent] AS [Hours Remaining]
FROM [Job Planning] INNER JOIN [Scanning Hour Report] ON [Job Planning].[Project Number] = [Scanning Hour Report].WBSElement
GROUP BY [Scanning Hour Report].WBSElement, [Scanning Hour Report].WorkCentreNumber, [Job Planning].[Project Number], [Job Planning].Customer, [Job Planning].Description, [Job Planning].[Planned Start], [Job Planning].[Progress %], [Job Planning].[Planned Finish], [Job Planning].[Actual Finish], [Job Planning].Consultant, [Job Planning].Team, [Job Planning].[MS-TECH Hours Given], [Job Planning].[MS-TECH], [Job Planning].[BAL-HIGH], [Job Planning].[BAL-HIGH Hours Given], [Job Planning].[BAL-LOW], [Job Planning].[BAL-LOW Hours Given], [Job Planning].[CM-TECH], [Job Planning].[CM-TECH Hours Given], [Job Planning].[CR-TECH], [Job Planning].[CR-TECH Hours Given], [Job Planning].[DW-JNR], [Job Planning].[DW-JNR Hours Given], [Job Planning].[DW-SNR], [Job Planning].[DW-SNR Hours Given], [Job Planning].ENG, [Job Planning].[ENG Hours Given], [Job Planning].[FS-JNR], [Job Planning].[FS-JNR Hours Given], [Job Planning].[FS-SNR], [Job Planning].[FS-SNR Hours Given], [Job Planning].[MS-HIGH], [Job Planning].[MS-HIGH Hours Given], [Job Planning].[MS-LOW], [Job Planning].[MS-LOW Hours Given], [Job Planning].[MS-MED], [Job Planning].[MS-MED Hours Given], [Job Planning].[QA-TECH], [Job Planning].[QA-TECH Hours Given], [Job Planning].[SB-TECH], [Job Planning].[SB-TECH Hours Given], [Job Planning].[WB-BOIL], [Job Planning].[WB-BOIL Hours Given], [Job Planning].[WB-HEAT], [Job Planning].[WB-HEAT Hours Given], [Job Planning].[WB-WELD], [Job Planning].[WB-WELD Hours Given], [Job Planning].[WM-TECH], [Job Planning].[WM-TECH Hours Given]
HAVING ((([Scanning Hour Report].WorkCentreNumber)="MS-TECH"));
-------------------------------------------------------------------------------
....these queries would display:
WBSElement - IT123456789012
WorkCentreNumber - BAL-HIGH
Customer - Customer000001
Description - High Speed balancing of turd filled drum
Planned Start - dd/mm/yyyy
Progress % - 95.00%
Planned Finish - dd/mm/yyyy
Actual Finish - dd/mm/yyyy
Consultant - Consultant1
Team - TEAM#
BAL-HIGH Hours Given - 20
Sum Of PeriodofEvent - 13.5
Hours Remaining - 6.5
The project number(Job planning table) and the WBSELEMENTNUMBER(Scanning Hour Report have linked via relationships tab
as an example... [see pic1]
now if the field finds no record in the ODBC it displays no information which would be correct in a sense. [see pic2]
BUT!
Here comes the complicated part.
NB!!:INSTEAD of displaying no information how would I go about making the ODBC fields display default value of 0 so when I add all the above mentioned workcenternumbers to ONE form, instead of displaying NOTHING when it finds no values for one of the workcenternumbers it will instead display that "50" hours given even if "0" hours were worked thus "50" hours still remain for that project number's work center number.
Is there an easier way of filtering different work center numbers to one form and summing figures from there or what?
To wrap it up all I'm looking for is a form that checks the workcenternumber and the hours captured on the ODBC "Scanning hour report" and subtracting it from the table "Job Planning" where the WBSELEMENT & Job Number as well as the work center numbers tie up to give me a total value of hours remaining. If nothing is found for one workcenternumber it displays value 0 instead of a entire blank page.
If you have a sample database I haven't seen that u think could come in handy it would be helpfull too.
Hope I didn't confuse you, yet... :rolleyes:
Thanks in advance
solbane
View 4 Replies
View Related
Dec 6, 2006
Hello,
I have simple invoice database, tyhe old one I made works fine, trying to make a newone always simple but now Access is not helping me for some reason,,,, Can you look at this? I create an invoice form using wizzard i join invoices and invoices details to it and from there I create my Invoive form that has the invoice info and the details.... I change some stuff for looks and easyness... Mostly change text boxes to combo boxes... I did this in office 2003 and had the same results than in office 2002, Why dont know... Once I create the invoice from and change the text boxes combos and ofcourse set everything else, once I pick a product from the detail form I get the product but I dont get its price. Now on my other older database made excatly the same way it works!!!! WHY IIIIIIII DONT KNOW!!! please help me:(
I have attached both db so you can look at them!!!
Thanks
View 2 Replies
View Related
Jan 24, 2007
Hello,
I just noticed something very strange - in a table of mine, when I create a new record with the form, the autonumber is an existing number. Say the last record had ID 400, then the "new" record is assigned an autonumber ID of 300.
Of course, record creation fails that way.
But with every attempt, the new autonumber moves one up, so eventually it'll start making unique numbers again.
Does anybody have an explanation for this odd behaviour?
View 7 Replies
View Related
Aug 21, 2007
This is the first time ive used the switchboard so hopefully this will be just a quicky!
Bascially i have a main switchboard which has 3 buttons. These buttons all link to different switchboard pages.
THE PROBLEM :- I have labels on the main switchboard and these are all appearing on the consequent switchboard pages. Is there a way of assigning these just to the main switchboard and not the other pages?
Thanks, any advice would be most appreciated!
View 11 Replies
View Related
Dec 14, 2005
I have a somewhat complex question.
We currently run Access 97 in the following way. We are looking for a solution where new members can access our data and change it using the internet. We are not sure of the best way.
Our database is split between "data" and "front-end". The "data" is kept on our win2000 server and is split into a "master" and several replicas. Some employees run their "front end" acceess programs on fixed computers attached to our network and simply attach to the "master" "data" database on our server. 4 employees use laptops and run their "fronends" by attaching to their own "replicas" of the "master" which they carry around with them. Once in a while, ususally daily, they synchronise their "replica" with the "master" on our server by simply attaching to our network using ethernet or WiFi.
What would be the best way to allow new members to join in the fun? There could be as many as 10 new members (brining the total to 16). The main problem is that they are located in different countries and ideally need to have a web or VPN access to our server. Does anyone have some suggestions? Should we migrate to SQL?
The database "data" is about 180Mb in size and has 40 odd tables that are used in a complex way by the "front ends". All queries are stored in the "front ends".
?? I would really appreciated some ideas..
Thomas
View 4 Replies
View Related
Aug 6, 2007
Good morning to everyone.
I am hoping that you will be able to help me with a table that I am working on. I have almost no experience with access, so I am useless when it comes to this.
I have attached a condensed version of the database that I am working on (removed everything except the one table that I am working on) so that you can see and edit what I am working on.
The requirements are simply this.
-If "Status" = 'new inquiry' and has not been update in 6 months, automatically changes to 'inactive' and "probability of order" automatically changes to 0%
-"Initial Inquiry Date" is set to the date the Inquiry was added to the table (but user has ability to change it manually)
-*bonus* If ship quarter has passed todays quarter then change "Status" to 'inactive'.
I hope I have attached enough for everyone to be able to help.
Thank you very much in advance, I really appreciate it. :)
View 14 Replies
View Related
Jan 22, 2008
Hello,
I have a performance, probably related to my query and calculation structure and would be seeking your advice.
The DB is basically an airline schedule, with to make things simple, an entry for every flight. (tblSchedule). This table has information of origin and destination, airline, flight times, and aircraft type (to make things simple). The table relates to several other tables (tblAirport, tblAirline, tblAircrafttype), for the obvious information reltated to those. Other than that, there is a tblAircraftConfig (which has information, related to Airline and Aircrafttype - among other things the number of seats for that aircraft type and airline).
Now I need to do several evaluations for the (very large) tblSchedule. Those evaluations are - in principle - straightforward, but due to the sheer mass of data and the way I probably do things, give me a sheer headache, in terms of runtime.
The calculations, actually need to be done on every entry in the schedule table: Here is the data that is calculated:
- Flighttime : (by simply substracting departure and arrival times, all part of tblSchedule, but need a lookup of time difference, between arrival and departure airport).
- Number of seats : actually a lookup in the tblConfiguration, based on airline and aircrafttype, part of tblSchedule), but since a weighted average of found entries has to be calculated, I do this via a function call
- Available seat miles (most tricky one): a multiplication of the seats (see above) with the flight distance. This flight distance is calculated using a formula (with all kinds of sin and cos and atn functions), grouped in a function call, which needs to work on a set of geographic longitude and latitude data of the arrival and departure airport. This data is included within tblAirport.
At the end of the day, I don't need these indicators per flight (single tblSchedule record), but summed across flights, e.g; per a/c type and airline, per city pair, per airline and departure etc.
As a said, some rather complicated formulae for a database application, but nothing to win the noble prize with. However, the number of calculations to be carried out just kills the run time.
- First shot: create a "full query" with a defined query, include all n:1 relationships into the query, and for those, n:m relationships, make a davg lookup. Calculate the indicators for every flight, and sum up in a report. Result: awful runtime.
- Second shot: create a grouped query, summing things within the query. Problem is the lookup, which I need to make into the n:m relationship of the a/c config. I worked a way around this by creating a formula, which does this lookup for me with either the dlookup formula or a recordset and then run through the records. Anyway, runtime is disgusting.
- Third shot: create a formula call for the entire data, which does the same thing that the query does, with running through the data in a recordset (which is handed over to the formula). The formula, just hands back the readily calculated number. Runtime: let's not talk about it.
So this is a call for help. Doesn't seem like a complicated problem, but that's the difference between theory and reality.
The main issue - I believe is the number of lookups and 'complicated' calculations - e.g. calculating the distance between two airports. The thing is, the number of calculations is also exaggerated by the fact, that it repeats the calculation for every single flight. Now there are a lot fewer airport pairs than flights, of course. So I tried:
- Fourth shot: Make a split query. First of all, a SELECT First query, which generates a list of airport pairs, and calculates the airport distance only for the pair, once and for all in the query. Then base the second query on this first query selecting the rest of the schedule data (the flight time, the seats etc.). In theory, a lot fewer calculations need to be made, sinc eflight distance is calculated only for 250 airport pairs, instead of 25,000 flight entries. But: result - pathetic.
HELP!
Thanks
Jan
View 1 Replies
View Related
Jun 25, 2006
I have a table which I use for generating Shipping notes;
pkShipmentsID (autonumber)
ShippingNoteNumber (text)
ShipDate (datefield)
DeliveryDate (datefield)
fkCustomerID (link to "tblCustomers")
fkHaulierID (link to "tblHauliers")
fkProductID (link to "tblProducts")
NumberPerPallet (number)
NumberOfPallets (number)
TrailerNumber (text)
I have a form which I use to generate the shipping details with a button on it for printing out the report based on the "ShippingNoteNumber"
I have managed to do all this with the help of a few people on here and a number of hours browsing this forum.
My problem is, that sometimes we ship more than one product to the same customer on the same trailer, and therefor the same shipping note number.
When I print out the shipping note filtering the report with the note number, it only prints ONE out.
Is there a way of showing ALL items with the same shipping note number on the SAME report? i.e. one page?
View 1 Replies
View Related
Oct 19, 2004
What is the best way to impliment a query in a form so that the user can view the query records, and have the option to print or save the selected record using command buttons?
I tried subforms but I could not get the command buttons to work in the subform after it went into the form, it wanted to print the entire form instead of the selected record from the subform.
So in a nutshell I have 3-4 queries that are built, and I want to have them show up on my form in a format that the user can scroll through the results and select a single record of the results and then print or save that individual record from the form, if such a thing is possible.
Thanks in advance
Todd
View 1 Replies
View Related
Mar 24, 2013
I am trying to do the good 'ol sales report (query) to include customers with no sales.
I have a customers table, account number table, sales table & sales (line) detail table. (all linked in that order)
If I run a query to show customers (in the customer table) with account numbers, that works
An unmatched query to show customer without an account number works (but of course the unmatched account number field isn't shown).
How can I get the two two be shown together with the "unmatched" having a null or 0 for their account number?
I am guessing in principle, the resulting solution can be modified to show customers without sales alongside those with sales?
View 3 Replies
View Related
Mar 4, 2015
In some cases I create pass-through queries and use these in an Append or Make-table query to bring data locally.
All is well and fine until source data changes and the pass-through query runs too long and times out.
If needed, I can extend the timeout value in the Parameters of the pass-through query no problem, but when I try to open the Append or Make-table query in Design view to do the same, the pass-through query is first triggered and then throws the timeout, and I cannot access the Design view of the Append or Make-table
Is there a way to open an Append or Make-table query in Design view without invoking the source query?
View 1 Replies
View Related
Oct 28, 2005
Hello All,
I'm trying to run a UNION query that joins five queries through a MS WorkSpace into a DAO.recordset in VB. I'm pulling the data from a SQL Server Database through VB in Access. I'm attempting to open a recordset with a query passed to it as a string. The query is below. For some reason, I'm receiving a message: "MS Jet database engine cannot find the input table or query. Runtime Error 3078".
Here's what's puzzling. When I run a single query without any UNION statement, the code finds the table and runs fine without error, but anytime I join two or more queries with a UNION statement in the VB, it gives me the error.
I've executed the same UNION query in both Access Query Builder and SQL Server's Query Analyzer and they work fine in both environments. It's only when I call the query from a DAO.Recodset with VB that it causes this problem. The following is a sample of the UNION query joining two of the five queries. Does anyone have any idea what could be the problem? The following query executes in about 5 seconds so I don't think there's a "time-out" issue. I'm thinking that the UNION statement may be the culprit. Maybe there's another way to approach joining these separate queries? Any help would be most appreciated. Thanks.
SELECT SalespersonID, Sum([SlsPrice]-[RtnPrice]-[SlsDiscnt]+[RtnDiscnt]) AS fldPrice FROM MyTable WHERE (((Source)='d') AND ((DistrictID)='01') AND ((CategoryID) = 'HCPROD') AND ((BrandID)<>'CSS')) AND (((BrandID)<>'1356')) AND (((BrandID)<>'1400')) AND (((BrandID)<>'1551')) AND (((BrandID)<>'555')) AND (((BrandID)<>'66'))
AND (TransDate >= 07/01/2005) AND (TransDate <= 07/31/2005) GROUP BY SalespersonID
UNION
SELECT SalespersonID, Sum([SlsPrice]-[RtnPrice]-[SlsDiscnt]+[RtnDiscnt]) AS fldPrice FROM MyTable WHERE (((Source)='d') AND ((DistrictID)='01') AND ((ProductID) = '0029800')) AND (TransDate >= 07/01/2005) AND (TransDate <= 07/31/2005) GROUP BY SalespersonID
Set wrkJet = CreateWorkspace("", "pw", "", dbUseJet)
Set db = wrkJet.OpenDatabase("DW", _
dbDriverNoPrompt, True, _
"ODBC;DATABASE=DW;DSN=DW2")
'Set rs1 = db.OpenRecordset(strSQL)
View 9 Replies
View Related
Nov 20, 2013
I am wondering if there is a quicker way to export a query to excel then have the data in that query removed from the original table. (effectively cutting the data from the table and exporting to excel)
I understand that this can be done by exporting the query to excel then running the same query as a delete query to remove the data but I just wondered if this is the most efficient way.
I have experience of VB in excel but currently only use the basic macro builder in Access though if Access VB is more efficient I can easily learn.
View 5 Replies
View Related
Apr 2, 2013
I run a physical therapy office and patients come in for treatment either 3, 4 or 5 times per week. My database is used to track these frequencies (among other things).
I have 3 queries which count how many patients come in 5, 4 and 3 times/week.
In my main table I have fields called "how many 5's", "how many 4's" and "how many 3's".
I have tried to design an update query which will update those fileds in my main table to reflect the counts in the 3 queries mentioned above.
(I'm not using SQL view, I'm using the query design view)
In the "update to:" row, I use the Build function and locate the count I'm looking for.
Problem: when I run the query I get the error: Operation must use an updateable query.
View 3 Replies
View Related
Aug 12, 2015
I have a query where these are the fields:
ProductRevType
RevLag
RevFlowThru
CloseMoYr
ProjRevDate
CurrentMRC
ProjRevMRC
The ProjRevMRC field is an expression that reads:ProjRevMRC: IIf([ProjRevDate]>=DateSerial(Year(Date()),Month(Date()),1),[CurrentMRC]*[qry303a_ SFADetailMRC_ONLY]![Rev Flow Through],0)
When I run the query, it works perfectly, but when I created a crosstab query to show totals by month, I wanted the totals to be zero for the months less than the current month. Is there a way for the crosstab query to execute the expression and put zeroes for those months?
View 4 Replies
View Related
Jul 15, 2014
I have a field that is giving me the number of business days between a period of time and then I want to subtract that number - the person's PTO time to see the actual days they were available...when I simply type the number in (see below) it works great but I want to set up a prompt that will ask me how many PTO Days to calculate as it will be different for each person I am quering...is this possible?
View 9 Replies
View Related
Jul 23, 2015
I have a form which will be used as the basis to print a label.
It is bound to a query and when I open the form I pass over a 'where' condition to return 1 record. I then use the query to produce a report/label.
What I want to do is to update the form/query without updating the underlying tables to the query.
View 14 Replies
View Related
May 31, 2006
:confused:
I am trying to help someone with a complex problem (so it seems to me) but I will first ask about what should be a simple thing....
First goal: to COUNT the number of times a TYPE of visit is made.
There are several different TYPEs but only interested in tracking 2 of them.
When a crosstab query is created - if one of the 2 parameters are not "met", a blank is returned. I have been reading posts about using NZ and IIf IsNull, etc to get past that - but none of them make any sense to me and the Access help suggestions do not work. Hope someone can make it clear with this information: (can't give more specifics to keep privacy intact)
The SQL was written by Access not by me. :)
Here is an example of the Crosstab SQL (which is using a previous query):
TRANSFORM Count([qryTest2.TYPE]) AS CountOfTYPE
SELECT qryTest2.CID
FROM qryTest2
GROUP BY qryTest2.CID
PIVOT qryTest2.TYPE;
-----------
qryTest2 SQL: (Grouping by to remove dups)
SELECT DISTINCTROW tblM.CID, tblM.[M#], tblM.LNAME, tblM.FNAME, tblM.YMDBIRTH, tblC.ClDOS, tblC.TYPE
FROM tblM LEFT JOIN tblC ON tblM.[M#] = tblC.[M#]
GROUP BY tblM.CID, tblM.[M#], tblM.LNAME, tblM.FNAME, tblM.YMDBIRTH, tblC.ClDOS, tblC.TYPE
HAVING (((tblC.TYPE)="Out" Or (tblC.TYPE)="In"))
ORDER BY tblM.CID, tblM.LNAME, tblM.FNAME;
Thanks for you time! :)
View 1 Replies
View Related
Mar 8, 2005
I'm building a report for annual software license renewals. The report data source is a query that combines the customer information, their computer information, and the licenses purchased for that computer. I am having no trouble with the form displaying the customer info page, then a page with the computer info at the top and a list of licenses purchased for that computer underneath.
That would be great, if that's what my boss wanted. However, she wants the whole list of available licenses displayed on each page, in the event someone want to purchase additional licenses with this year's renewal.
I'm trying to figure out how I can set up a query/report grouping to do that. I've tried making a new query, relating the qryLicense!licenseID to the qryPurchase!purchLicense and setting the relationship option to show all records from qryLicense and only those related from qryPurchase. I added the qryPurchase!purchCPU field to my query, hidden it, and set the criteria to “=1” (the computer ID of one of my dummy computer records). I also have a Sum of the qryPurchase!purchQty field included in the new query that I want to display the total number of that particular license purchased (and 0 if there are no corresponding records). All fields except for the quantity field are set to Group By.
What I’m getting from this is simply a list of the licenses purchased for that computer, not the complete list of licenses available showing the quantity purchased where applicable.
Can someone see where I’m going wrong?
Slaughter
slaughter at mizzou dot edu
View 9 Replies
View Related