Search results

  1. P

    Match the primary Key in the Main form to the foreign key in the Subform

    GpGeorge got it right in his first post -- you shouldn't be doing this. You can achieve what you ultimately want, but this is not the way to do it. You don't store both age and date of birth in a table because age can be calculated off of date of birth. Further, age tomorrow isn't guaranteed...
  2. P

    Table fields

    I've played this game before many times on this site, but willing to do it again for you: I strongly suggest you use autonumbers and forget this ultimately useless amalgamation you think is the right solution. Here's where you say--"But we need all that information crammed into a string...
  3. P

    Data model for recruitment database with reserve list

    You don't need the _1 tables in there, you only need each actual table in there once. However... 1. Remove the _SuccesfulID fields from VacancyCandidate_Tbl and replace it with a Yes/No field called Success, default it to No and if they are successful change it to Yes. You now know if they...
  4. P

    Calculations on a report

    I've got the right help, but not help you are going to want to hear--I think you have set up your database tables incorrectly. The little we have to go on raises a lot of red flags. The Detail section doesn't use any data from the report. It uses DSums which have their own data source...
  5. P

    Data model for recruitment database with reserve list

    You need another table---VacancyCandidate. Since a single vacancy can have multiple candidates and a single candidate can go to multiple vacancies you need a table to sort all that out. This is what that table looks like: VacancyCandidate vc_ID, autonumber, primary key vc_DateTime, datetime...
  6. P

    Solved Interesting QUERY problem

    Words rarely working in describing how you want a query to work. Example data is the way to go. Give us two sets of data: A. Starting data from your data source. Include data source and field names and enough rows to demonstrate all cases B. Expected results from A. Show us what data...
  7. P

    Strange query behavior

    You're asking us how to use duct tape to fix the wood putty that you used to fix your cracked foundation. Actually, that's not a great analogy because your root issue isn't as bad as a cracked foundation. It's actually really trivial to fix. Don't store this value, calculate it. You make one...
  8. P

    Solved How to run an append query to append Five lines same data in the same table

    First, I don't think your products table is a products table, it's an inventory table (e.g. QuantityUnit, WHID). You are storing a ton of duplicate data that should go into an actual products table (BarCode, ProductType etc.)I think you do need a products table--one that just lists all the info...
  9. P

    Solved How To Handle Calculated Fields Dependant On Parent Calculated Fields

    Think we need more specifics. I have two hunches based on nothing you've said, just experience here: 1. Your math could be more efficient. 30 fields based on 15 inputs is a lot, and then you say that some calculations feed into other calculations downstream. Perhaps some of those...
  10. P

    Help with looping through records

    You're printing out a value on the form, not a value from the record set.
  11. P

    Plus One to Alpha Field

    "R915" doesn't look like a number to me. Are you using base 28 or more? In a table, you should store your values with the data type they need to be. If you will be doing math on data then you should store them as numbers. That means the "915" part goes into a field by itself as a number, and...
  12. P

    Solved Sorting with DISTINCT

    You can't have it both ways. Either you get a list of unique artists because the artist names are distinct. Or you get duplicate artist names because record_id/artist name is not distinct to artist.
  13. P

    Solved Sorting with DISTINCT

    Is 'artist_name' a field in qryRecord_Search_Form_record2? My guess is no, it's that horrible one with a slash and space in it.
  14. P

    SQL Code in Access Report

    Agree with MajP and my guess as to where it is going wrong is that you are counting gifts, not donors. [PY Gifts] is most likely a list of gifts which means if a donor gave multiple gifts they are showing up multiple times in that table and you are counting them each time they gave a gift...
  15. P

    Selecting only records where both of two values exist

    With those database constraints I was wrong. Cheeky's solution will work. Sorry.
  16. P

    Selecting only records where both of two values exist

    Fails if 2 bike/car records and no bike/car records. False positive. Fails if a bike record and a car record and then matching records (bike bike car, car car bike, car car bike bike). False negative.
  17. P

    Selecting only records where both of two values exist

    Is your number 2 in response to my #2? If so you missed the point. Reread my explanation. tblCategoryTypes is a subset of tbl_ContactCategories. Every field in tblCategoryTypes is in tbl_ContactCategories. That's wrong.
  18. P

    Selecting only records where both of two values exist

    Not that simple actually--but not too hard. Gonna take a subquery. There's a few ways to do this so I'm betting this turns into another pedantic coding contest. Here's my entry: SELECT ContactID, MAX([Category Type]) AS Type1, MAX([Category Type]) AS Type2 FROM tbl_Contact_Category WHERE...
  19. P

    End of the Month

    The +1 needs to go to the interval not the dateofinspection.
  20. P

    Solved Need help with one of my Time Clock forms

    Definitely. I mean your solution to fallible employees is relying on those fallible employees. And you don't need to, you can catch these errors with the system itself. I'd let them clock out and notify them via a message box that they need to contact an admin to fix it. Further, I'd have...
Back
Top Bottom