Search results

  1. D

    Join Expression Not Supported

    Hi I have the following code which exports excel files form a query to a folder on C:\. (with a lot of assistance from the forum!) Private Sub cmdExpoirtMissingDataFiles_Click() Dim rs As Recordset Dim CreationMoment As String: CreationMoment = " Created on " & Format(Date, "ddmmyy") & " at "...
  2. D

    Complex Query

    Thank you. I am sorry if I messed this up. This level of coding is beyond my capabilities, but I am really pleased it is now working, You're brilliant!
  3. D

    Complex Query

    Hope this file size is Ok
  4. D

    Complex Query

    Ok. I have 6 countries in the raw data file. Each country has 1 record where the field is blank for each country. The rule is set to true for this field for each country, but the function does not find them.
  5. D

    Complex Query

    Sorry, obviously that was only a sample of the data. There are actually 124 country codes with rules applicable to each of these. When I turn the rule on/off it works for all fields except the second one.
  6. D

    Complex Query

    Sorry arnelgp. I have been doing some testing and one thing is puzzling. The function does not recognise missing data in the second column., "Survey Methodology (Legacy Anonymous / Linked Data)". It works for all other columns just not this one.
  7. D

    Complex Query

    Sorry, my mistake. There were actually a few anomalies in my tables which I have now fixed. The function now works brilliantly. Once again, thanks for your assistance and patience! Cheers
  8. D

    Complex Query

    Thanks again for this. I have imported into my project but when the run the function I get an error "Item not found in this collection" at the line varValue = .Fields(fldName).Value
  9. D

    Complex Query

    Sorry. Just assume that across 250,000 records there could be blanks in any field in any record
  10. D

    Complex Query

    Thanks again Hopefully, the attached will clarify! The point with this is, any company may or may not be required to complete a particular field in the survey. tblDataRules is designed (rightly or wrongly) to look at this.
  11. D

    Complex Query

    Thanks
  12. D

    Complex Query

    Wow. You asked for a copy of the table. I assumed you wanted to see the table structure not the data, assuming that the real data would have Null records.
  13. D

    Complex Query

    Thanks for the response. Attached is a sample table of the raw data.
  14. D

    Solved Format Number Field in Select Statement

    Perfect! Thank you very much, greatly appreciated.
  15. D

    Solved Format Number Field in Select Statement

    Thanks arenlgp. Where would I place this in the select statement? I tried SELECT [qryCountriesWithMissingData].[Member Firm], Format( [qryCountriesWithMissingData].[CountryCode],"#"), [qryCountriesWithMissingData].[No of Records] FROM qryCountriesWithMissingData ORDER BY [Member Firm]; This...
  16. D

    Complex Query

    Hi All This is a bit messy! I have a table with 57 fields which denote responses to a survey. There are 135 companies that provide the data, each with a number of staff who respond culminating in a table with over 250,000 records. Not every company has to supply data for all of the fields...
  17. D

    Solved Format Number Field in Select Statement

    Thanks for your response. I am not sure I understand what you are saying though. What I am trying to do is something like Format (CountryCode, "#,##0") but I am trouble with the syntax within the select statement
  18. D

    Solved Format Number Field in Select Statement

    Hi Could someone please show me the correct syntax to format the field [CountryCode] in the following select statement to zero decimal places? SELECT [qryCountriesWithMissingData].[Member Firm], [qryCountriesWithMissingData].[CountryCode], [qryCountriesWithMissingData].[No of Records] FROM...
  19. D

    Solved Nested Loop

    Thanks. Got it
  20. D

    Solved Nested Loop

    Thanks for your response Gasman I do actually have a table that identifies the data completion requirements of each country. I am not sure what you mean "link to your sql to only pull in those that cannot."
Back
Top Bottom