Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PeterDuthie

    roviding a "Find Record" for a subform on a tab control

    Hello all. I'm stumped with this one and would be very grateful for some help. I have a Form with contains a tab control with a subform on each of the three tab pages. (It so happens that there is a one to many relationship between page 1 and 2 and page 1 and 3. The database is growing fast and...
  2. PeterDuthie

    Reference table column computationally in sql query - how

    Hello raskew. I don't know how clear this will be to you but I'll be happy to try and explain. I'll try and keep this short. These are the columns I've been talking about in table [Daily Record Sheet] (a sheet filled out by work gangs and recorded in the database every day - or so). This table...
  3. PeterDuthie

    Reference table column computationally in sql query - how

    Thanks for your interest Pat. A stacked query is a query that is stacked: a query which uses the result of another query(s). There is a solution to my particular problem using UNION. What I did was split the recordset into 5 parts, each having one just one column which was identified by the...
  4. PeterDuthie

    Reference table column computationally in sql query - how

    Hello John and anyone else who reads this. John, you were right about the UNION. It took a while for the penny to drop but what I've done is split up the rows to return 5 recordsets with each discrete Column(X) along with the rest of the data ... then UNION(ed) them. So now I can do my grouping...
  5. PeterDuthie

    Reference table column computationally in sql query - how

    Thanks very much raskew - and you have understood the jist of the problem. But the code you suggest would need to be called from a procedure or function where a sql string was being built up. I was hoping to do something like MyColumn & str(NumberFromStackedQuery)right from the query. I'm newish...
  6. PeterDuthie

    Reference table column computationally in sql query - how

    Thanks a lot for your help John. I hadn't tried the Union approach because column1 ... column5 are in the same table. I have tried now tried a union but it doesn't work - not the way I've coded it anyway. Cheers, Peter
  7. PeterDuthie

    Reference table column computationally in sql query - how

    Hello All. I have a stacked query which returns a series of rows of numbers (1-5) which refers to one of 5 columns in a table. How can I (or maybe I can't do this) code the column names with the numbers returned from the stacked query. Here's an example of what I want to do. I want to end up...
  8. PeterDuthie

    Reference table column computationally in sql query - how

    Hello All. I have a stacked query which returns a series of rows of numbers (1-5) which refers to one of 5 columns in a table. How can I (or maybe I can't do this) code the column names with the numbers returned from the stacked query. Here's an example of what I want to do. I want to end up...
  9. PeterDuthie

    Query with counts for Chart in report

    Hello again Psychpt. You're obviously way ahead of me on SQL. Do you have a book recommendation? I have the excellent Access 2000 Developer's Handbook set but a more detailed discussion (with worked examples?) would be really useful to me. Cheers, Peter
  10. PeterDuthie

    Query with counts for Chart in report

    Very good Psychpt - this works perfectly. I see that DCount helps here too. Cheers, Peter
  11. PeterDuthie

    Query with counts for Chart in report

    Hello Everyone. I need to get back two values from a query - 1. the total number of rows in a table and 2. the number of "incidents" which have been "signed off" (i.e.) dealt with successfully within 48 hrs. The two values are intended for a pie chart. Here's what I've got...
  12. PeterDuthie

    Query with counts for Chart in report

    Hello Everyone. I need to get back two values from a query - 1. the total number of rows in a table and 2. the number of "incidents" which have been "signed off" (i.e.) dealt with successfully within 48 hrs. The two values are intended for a pie chart. Here's what I've got...
  13. PeterDuthie

    How do I get a query to return summed time fields? or ....

    Thank very much CaptainD and Paul. I've copied your code to a text file and I'll play around with it when I have bit of time. The CDate() will do for now, but I keep thinking I'm missing simple ways of doing things - or rather, letting VBA do the things for me:) Cheers, Peter
  14. PeterDuthie

    How do I get a query to return summed time fields? or ....

    Thanks Boxhead - I've done a search but can't find (or missed) the thread you mention. If you come across it again I'd be interested to see what solution was put forward. Cheers, Peter
  15. PeterDuthie

    How do I get a query to return summed time fields? or ....

    Hello All. I've found "an" answer: CDate will convert the number to a date. This works OK on the report side but I'm still interested in a solution to the problem at the SQL side - if there is a solution. Cheers, and thanks for reading this, Peter
  16. PeterDuthie

    How do I get a query to return summed time fields? or ....

    It'll probably be more clear if I show you the query I'm using: SELECT DecontaminationRecord.Location, Sum(DecontaminationRecord.LOShrs_mins) AS LOS_SUM, tblLocation.Loc FROM DecontaminationRecord, tblLocation WHERE (DecontaminationRecord.[Date] = [Forms]![frmGetDate]![DateForReport]) and...
  17. PeterDuthie

    Am I doing this all wrong?

    Thanks very much Rick and Michael. The two table approach is probably best for this particular case as my client doesn't want the different departments messing with data they should have no interest in. From what you say it looks like I'm on the right track. The trouble is that I've had to come...
  18. PeterDuthie

    Am I doing this all wrong?

    Thanks for your input Seaport. I think I missed out an important piece of information. I'm new to Access and I looked at setting up a one-to-one relationship but I can't see what benefit that would bring me for this particular situation. Am I right about that? BTW the code does work It's just...
  19. PeterDuthie

    Am I doing this all wrong?

    Please excuse me if I'm being dense here. This is the problem: Personnel database which is used by various departments each with a table and form recording relevant data. The Main "Workforce" table generates an autonumber which is then used as that person's "ID" and is the...
  20. PeterDuthie

    Joining Tables - FAQ wanted

    Many thanks MisterC Cheers, Peter

Part and Inventory Search

Back
Top