Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Running & Setting Up Queries | Forum profile

Forum profile page for Running & Setting Up Queries on http://www.officefrustration.com. This report page is the aggregated overview from a single forum: Running & Setting Up Queries, located on the Message Board at http://www.officefrustration.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "Running & Setting Up Queries" on the Message Board at http://www.officefrustration.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Microsoft Office (Excel, Word) forum - OfficeFrustration - Running & Setting Up Queries (site profile, domain info officefrustration.com)
Title: Running & Setting Up Queries
Url: http://www.officefrustration.com/forumdisplay.p...
Users activity: 31 posts per thread
Forum activity: 233 active threads during last week
 

Posting activity on Running & Setting Up Queries:

  Week Month 3 Months
Threads: 233 692 1,947
Post: 664 1,981 6,009
 

Running & Setting Up Queries Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
KARL DEWEY
51
user's latest post:
Crystal Reports formula to Access
Published (2009-11-25 20:53:00)
Here is a guess -- IIF([MASTER].[JMT_DATE] Is Not Null, "Post Judgment", IIF([MASTER].[JMT_DATE] Is Null AND [MASTER].[SUIT_DATE] Is Not Null, "Post Suit, Pre Judgment", IIF([MASTER.SUIT_DATE] Is Null AND [MASTER].[JMT_DATE] Is Null, "Pre Suit", "Unknown"))) -- Build a little, test a little. "lindag" wrote: Any suggestions on how to use this formula in...
John Spencer
50
user's latest post:
Comparing columns in two...
Published (2009-11-25 21:39:00)
Well if the DATE field is always after Dec 30, 1899, you could plug that in. If it was a DOB you could plug in a date 200 years ago for nulls. Perhaps you are missing some parentheses to make sure things are working. I would have parentheses around each set of fields like so: AND (([T003-Snapshot Table].[L3]=[Q010-Program-Tracker].[L3]) Or ([T003-Snapshot Table].[L3] is Null AND [Q010-Program-Tracker].[L3] is NULL)) I would try just joining...
KenSheridan via AccessMonster.com
20
user's latest post:
How to use Delete Query for...
Published (2009-11-25 01:35:00)
The concept of a row number is completely foreign to a table in a relational database. Tables are sets and as such have no intrinsic order. You'll need to specify a sort order which determines which are the top 5 rows you want to retain. Assuming you can do this on a column in the table then you'd use a subquery to return the top 5 rows and restrict the rows deleted to those not returned by the subquery, e.g. DELETE * FROM [Table A]...
Duane Hookom
15
user's latest post:
period question
Published (2009-11-25 19:04:00)
Mccloud, You have asked several vague questions without providing your table and field names. I expect if you provide some field and table names as well as enough records and what you expect for results, someone can help you. If you choose to not provide this information, we can only make wags. -- Duane Hookom Microsoft Access MVP "mccloud" wrote: I have a form that a user can enter the number of periods to review up to 24....
vanderghast
14
user's latest post:
Merging queries by column in access
Published (2009-11-25 21:44:00)
You can try: SELECT Year(date), min( iif( condition1, var1, null)), max( iif(condition1, var1, null)), ... , min( iif(condition2, var2, null)) , ... FROM ... GROUP BY Year(date) that is, remove the conditions from the WHERE clause which are not common to all expressions, since they are not in the iif on which operates the aggregations. Vanderghast, Access MVP "Xmas" wrote in message...
Marshall Barton
14
user's latest post:
Nested or Sub query?
Published (2009-11-25 17:44:00)
Joseph Atie wrote: Im a bit lost as to how to go about this, I have 3 queries that i built in access query builder which join 4 tables together in order to generate a report What I would like to do is turn those 3 queries into a single sql statement that can be run from vba. Query A SELECT Transdata.Barcode, Transdata.Out, Transdata.[In], Transactions.Usercode, Transactions.location FROM Transactions LEFT JOIN Transdata ON...
John W. Vinson
13
user's latest post:
# in table
Published (2009-11-25 22:32:00)
On Wed, 25 Nov 2009 20:07:20 GMT, "instereo911 via AccessMonster.com" u27979@uwe wrote: Hi, I have a table w/ multiple values on one column seperated out by a ";#" sign. Example: State Number ;#Central;#COVA;# 1 Ideally, what i want to do is the following State Number Central 1 COVA 1 So it breaks it out to two different rows for each of the ;# Is this possible? I hope so because I don't want to redo...
Bob Barrows
13
user's latest post:
Pass Through Query Translation
Published (2009-11-25 17:15:00)
Kou Vang wrote: How do I translate this into a pass through query? I've been puzzled over this for a day now? SELECT STORET1_TSRFDACT.START_DATE FROM STORET1_TSRFDACT WHERE ((Year([start_Date])=2008)); I keep getting an error '"YEAR": 'Invalid Identifier' What is the database you're passing this through to? -- HTH, Bob Barrows
Ken Snell
13
user's latest post:
Ask for date
Published (2009-11-25 18:07:00)
It appears that ACCESS is interpreting your user's input dates as strings, not dates. Either declare the parameters as DateTime type in the query, or format the user's input dates as "formatted dates": PARAMETERS [begin] DateTime, [end] DateTime; SELECT * FROM YourTable WHERE dateadd("h",-8/24, [datetime]) Between [begin] AND [end]; Or SELECT * FROM YourTable WHERE...
Jeff Boyce
11
user's latest post:
Can I use an IIF statement with...
Published (2009-11-23 21:23:00)
And what will you do when the powers-that-be decide to add yet another "movement"? Or stop considering one of the existing ones? Your table design is not so much a relational database table as a spreadsheet. Access is a relational database, and is optimized to work with well-normalized data. If you try to feed it 'sheet data, both you and Access will end up working overtime to come up with work-arounds ... oh wait,...
 

Latest active threads on Running & Setting Up Queries::

Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 1 day, 22 hours ago (2009-11-25 23:20:00)  by Sheri
I am trying to create a LAG report that gives what month/year (Jan 2006-Dec 2009) service was given (the rows) to month/year service (again Jan 2006-Dec 2009) was paid for (columns) with the sum of the Net $ as the result. I have a crosstab query which gives me what I need, except it only will show one year's worth of months without the year, so if someone get's service in November it ...
Thread:  Show this thread (2 posts)   Thread info: Columns using month and year Size: 829 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Columns using month and year :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 1 day, 22 hours ago (2009-11-25 23:15:00)  by DawnTreader
Hello All i figured it out. i had set the field in the table utblPartListPriceQuery to be index with no duplicates. changing it back to no indexing causes the list to automatically load field information from the other table. "DawnTreader" wrote: Hello All I have a query like this: SELECT utblPartListPriceQuery.ID, utblPartListPriceQuery.Partnumber, ...
Thread:  Show this thread (2 posts)   Thread info: Requerying Automatically Size: 2,578 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Requerying Automatically :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 1 day, 23 hours ago (2009-11-25 22:32:00)  by John W. Vinson
On Wed, 25 Nov 2009 20:07:20 GMT, "instereo911 via AccessMonster.com" u27979@uwe wrote: Hi, I have a table w/ multiple values on one column seperated out by a ";#" sign. Example: State Number ;#Central;#COVA;# 1 Ideally, what i want to do is the following State Number Central 1 COVA 1 So it breaks it out to ...
Thread:  Show this thread (2 posts)   Thread info: # in table Size: 1,693 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: # in table :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 2 days, 1 hour ago (2009-11-25 20:53:00)  by KARL DEWEY
Here is a guess -- IIF([MASTER].[JMT_DATE] Is Not Null, "Post Judgment", IIF([MASTER].[JMT_DATE] Is Null AND [MASTER].[SUIT_DATE] Is Not Null, "Post Suit, Pre Judgment", IIF([MASTER.SUIT_DATE] Is Null AND [MASTER].[JMT_DATE] Is Null, "Pre Suit", "Unknown"))) -- Build a little, test a little. "lindag" wrote: Any suggestions on how to use this formula in Access? if not(...
Thread:  Show this thread (3 posts)   Thread info: Crystal Reports formula to Access Size: 953 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Crystal Reports formula to Access :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 1 week ago (2009-11-19 22:42:00)  by KARL DEWEY
If your data is 'normal', as using a single field to store the type of diabetes then the query below will give you the idea how. SELECT Sum(IIF([YourTable].[Type], = "1", 1,0)) AS CountType1, Sum(IIF([YourTable].[Type], = "2", 1,0)) AS CountType2, Sum(IIF([YourTable].[Gestational_Age], = "1-18", 1, 0)) AS [Count Gestational Diabetes 1-18 years], Sum(IIF([YourTable].[Gestational_...
Thread:  Show this thread (5 posts)   Thread info: Creating queries asking for counts Size: 2,335 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Creating queries asking for counts :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 2 days, 4 hours ago (2009-11-25 17:44:00)  by Marshall Barton
Joseph Atie wrote: Im a bit lost as to how to go about this, I have 3 queries that i built in access query builder which join 4 tables together in order to generate a report What I would like to do is turn those 3 queries into a single sql statement that can be run from vba. Query A SELECT Transdata.Barcode, Transdata.Out, Transdata.[In], Transactions.Usercode, Transactions....
Thread:  Show this thread (3 posts)   Thread info: Nested or Sub query? Size: 2,491 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Nested or Sub query? :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 2 days ago (2009-11-25 21:44:00)  by vanderghast
You can try: SELECT Year(date), min( iif( condition1, var1, null)), max( iif(condition1, var1, null)), ... , min( iif(condition2, var2, null)) , ... FROM ... GROUP BY Year(date) that is, remove the conditions from the WHERE clause which are not common to all expressions, since they are not in the iif on which operates the aggregations. Vanderghast, Access MVP "Xmas" ...
Thread:  Show this thread (2 posts)   Thread info: Merging queries by column in access Size: 1,726 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Merging queries by column in access :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 2 days, 20 hours ago (2009-11-25 01:31:00)  by Phil Smith
DUE: FormatCurrency(Nz(([SNESFee]-[INVOICE AMOUNT]),[SNESFEE])). Look up FormatCurrency() in the help for optoins about decimal places, leading digits, etc. As Above, it uses your regional settings, which will probably be all you need. Phil donna wrote: In design view of a query, I am trying to make a new field by subtracting one field from another. Since the field to ...
Thread:  Show this thread (5 posts)   Thread info: FORMATTING RESULTS IN CALCULATED FIELD Size: 1,135 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: FORMATTING RESULTS IN CALCULATED FIELD :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Microsoft Office (Excel, Word) forum - OfficeFrustration
Started 2 days, 16 hours ago (2009-11-25 05:45:00)  by Joseph Atie[_2_]
im not expert but if i wanted to exclude null values from your query id give this a go: table2.field1 and is not null. table1.field1 table2.field1 and table.field1 "PatK" wrote: I have created the following SQL query to attempt to find the differences between two identically structured tables. What I do each day is take a "snapshot" of today's Table. Tomorrow, I ...
Thread:  Show this thread (5 posts)   Thread info: Comparing columns in two otherwise identical Tables Size: 2,609 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Comparing columns in two otherwise identical Tables :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
 

Hot threads for last week on Running & Setting Up Queries::

Running & Setting Up Queries
Started 4 days, 5 hours ago (2009-11-23 16:08:00)  by Richard Horne external usenet poster
Hello guys. I'm trying to run a very simple query that shows all results from a table called EE_DR, where the Date field in this table is between two certain dates. I have a form called Snapshot that has two text boxes StartDate and EndDate that populate the query. The query is as follows: SELECT * FROM EE_DR WHERE (((EE_DR.Date) Between [Forms].[snapshot].[StartDate] And [...
Thread:  Show this thread (22 posts)   Thread info: Querying between two dates doesn't work if Start and End are ident Size: 1,053 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Querying between two dates doesn't work if Start and End are ident :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Date Expression - 15 new posts
Started 1 week ago (2009-11-20 01:24:00)  by Loggical via AccessMonster.com external usenet poster
I use this expression in the criteria in a Query. How can I modify it to obtain records for a 24 hour time period? At present it produces records for the previous day. I need it to produce records on the previous 24 hour time period. (Example) Tuesday 06:00 to Wednesday 06:00 Wednesday 06:00 to Thursday 06:00 DateAdd("d",-1,Date()) And DateAdd("d",1,Date()) Thanks in advance --...
Thread:  Show this thread (15 posts)   Thread info: Date Expression Size: 686 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Date Expression :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 2 weeks ago (2009-11-13 00:47:00)  by KenSheridan via AccessMonster.com
Try this: PARAMETERS [Enter date:] DATETIME; SELECT FirstName, LastName, CensusCode FROM Individuals INNER JOIN Census AS C1 ON C1.IndividualID = Individuals.IndividualID WHERE CensusCode IN (1,3) AND DateEffective = (SELECT MAX(DateEffective) FROM Census AS C2 WHERE C2.IndividualID = C1.IndividualID AND DateEffective = [Enter date:]); Ken Sheridan ...
Thread:  Show this thread (21 post)   Thread info: Query help for a census database Size: 1,862 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Query help for a census database :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 4 days, 15 hours ago (2009-11-23 06:40:00)  by John W. Vinson
On Sun, 22 Nov 2009 20:35:01 -0800, Candy Pierce wrote: I need an Expression to extend the purchase date to a warranty expiration date based on a product type Ummmm.... How can we help? You have not chosen to post any information about the structure of your table, where the purchase date is stored, how you intend to identify the extension... Give us a hand here please? --...
Thread:  Show this thread (11 posts)   Thread info: A calculated field in access Size: 631 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: A calculated field in access :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 6 days, 2 hours ago (2009-11-21 19:57:00)  by Bob Barrows
perkinesed wrote: I am trying to convert some MS Access queries to .net. These queries call other queies, that call other queries, etc., sometimes up to five levels deep. I am trying to keep from using subqueries because of the amount of testing that would be required, some of the lower level queries are used in multiple high level queries, and some of the lower level queries ...
Thread:  Show this thread (10 posts)   Thread info: convert layered MS Access queries to .NET Size: 1,078 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: convert layered MS Access queries to .NET :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 6 days, 21 hours ago (2009-11-21 01:02:00)  by KARL DEWEY
Post a SQL of a select query containing all the fields to use. -- Build a little, test a little. "Steve" wrote: I am trying to put together the SQL statement to get me the time (in minutes)between the time entry for the current record and the time of the most recent entry just before it. For instance, in my query results, I get entry number 10 with a time stamp of 11:00:00...
Thread:  Show this thread (9 posts)   Thread info: Time Between the Time of the Current Record and the Next Earliest Size: 1,057 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Time Between the Time of the Current Record and the Next Earliest :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 1 week ago (2009-11-20 19:18:00)  by Ken Snell
Use a non-equijoin to join the two tables. This type of join allows you to use expressions/functions in the join's ON clause. Note that this type of query will not be updatable. You'll need to build this type of query in the SQL view (cannot do it in datagrid/design view). SELECT ASSETS.*, UNITINFO.* FROM ASSETS INNER JOIN UNITINFO ON CStr(ASSETS.[UNIT #]) = UNITINFO.[UNIT #]; ...
Thread:  Show this thread (9 posts)   Thread info: Convert datatype using query Size: 1,797 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Convert datatype using query :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 1 week ago (2009-11-20 18:46:00)  by KenSheridan via AccessMonster.com
You'll need to create the query in SQL view as the join is not one which can be created in design view. Assuming tables named Contacts and PostCodes SELECT [Contacts].[FirstName], [Contacts].[LastName], [Contacts].[Address], [Contacts].[City], [Contacts].[Province], [Contacts].[PostCode], [PostCodes].[Office], [PostCodes].[Building] FROM [Contacts] INNER JOIN [PostCodes] ON ([Contacts...
Thread:  Show this thread (9 posts)   Thread info: Query to find a range of data Size: 2,396 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Query to find a range of data :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 1 week, 2 days ago (2009-11-18 19:01:00)  by Ken Snell
Any thoughts about what? You haven't told us what is your question, or what is the problem that you're having? -- Ken Snell http://www.accessmvp.com/KDSnell/ "stickandrock" wrote in message ... I have a table(A) that is joined to 2 other tables (B and C). The Key in all 3 of these tables is Part. Part 123 in on Table A 1 time, on Table B 3 times and on ...
Thread:  Show this thread (8 posts)   Thread info: join with different number of rows Size: 1,349 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: join with different number of rows :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."
Running & Setting Up Queries
Started 1 week, 1 day ago (2009-11-19 11:14:00)  by JAmes external usenet poster
Hi I have a Query that extracts two fields of data from a table 1. CustomerName (Contains customer name) 2. BuySell (Has either the Word "Buy" or "Sell") However I wish this query to display CustomerName (As above) but I want it to display a word based on whether field 2 is the word 'Buy' or the word 'Sell'. So for example if the word 'Buy' is in field 2 then I want the word 'RHS' to...
Thread:  Show this thread (8 posts)   Thread info: Making a query that shows a value based on another value. Size: 791 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Making a query that shows a value based on another value. :: Running & Setting Up Queries :: Microsoft Office (Excel, Word) forum - OfficeFrust..."