Recent content by pooldead

  1. P

    Solved Chart Displaying Empty Axis Values

    Okay, figured it out. I had to go into the Chart Settings and select my Axis category, then choose "Day" since it's a date field. Thanks for the assistance!
  2. P

    Solved Chart Displaying Empty Axis Values

    So I have the query part fixed, but when I try and modify the "Transformed Row Source" value to edit the SQL query, it won't let me save. Shows this (which I confirmed none of those reasons to be true):
  3. P

    Solved Chart Displaying Empty Axis Values

    I can try that, but if I wanted to keep days that are actually zero, I could limit to items that are not null right?
  4. P

    Solved Chart Displaying Empty Axis Values

    I have a bar chart I'm trying to setup using historical data from a table. I'm tracking the data by date, and the table column being charted on the axis is set as a Date/Time field. The issue is that my recorded dates are spread out, not daily. So the chart is displaying all the dates in between...
  5. P

    Handling Spaces in Table Names Used as Variables

    I have the following code: tblName = "TableA" fldName = "User ID" sqlStr = "SELECT " & fldName & " FROM " & tblName & " WHERE '" & fldName & "' = '" & rs1.fields("Username") & "'" Set rs1 = currentdb.openrecordset(sqlStr) It runs fine when fldName doesn't include a space (ex: UserID), but I...
  6. P

    Code Execution Skips with No Error

    @Gasman - yes, the first time through the function, the copyfromrecordset dumps the data into excel correctly. Stepping through a little more carefully, it looks like it has some kind of issue with the .listobjects.add portion from the 2nd run and on. I'm trying to look at why it doesn't like that.
  7. P

    Code Execution Skips with No Error

    Got it. I'll go double check to be sure.
  8. P

    Code Execution Skips with No Error

    I did not. All the variables/objects were assigned appropriately.
  9. P

    Code Execution Skips with No Error

    I have. It hits that copyfromrecordset line, then on the next step just goes back to the main function. I've never seen it behave like this before, not without an error along with it.
  10. P

    Code Execution Skips with No Error

    I have the following code that is included in a function that runs through a recordset of users. It executes perfectly for the first record. When it gets to the second record, the code runs the ".Range("A2").CopyFromRecordset rs1" then skips back to the main function and doesn't finish out the...
  11. P

    Solved Error 1004 When Passing Formula to Excel

    This article led me to the solution. I was right, the double quotes were a problem. https://stackoverflow.com/questions/13123230/writing-formula-into-excel-through-access-vba
  12. P

    Solved Error 1004 When Passing Formula to Excel

    I have the following formula that runs as expected when used directly in Excel. But when I try to add it into my Access VBA, I get error 1004 "Application Defined or Object Defined Error". I think it has to do with my double-quotes to identify text in the formula, but I don't know how to...
  13. P

    De-concatenate String for Comparison

    StrID, it has a problem with something in the split, but I couldn’t figure out why
  14. P

    De-concatenate String for Comparison

    I don’t have it in front of me, but it was basically: dim strID() as string, rs1 as dao.recordset StrID = split(“” & rs1.fields(“userid”) & “”), “;”) where rs1 is how I’m pulling the userids from the table
  15. P

    De-concatenate String for Comparison

    So I did try using split earlier but I kept getting an error type mismatch, I think because of trying to pass a string variable into the split function expression. Unfortunately, I can’t store the data differently due to how the entire process is managed (which I can’t get into for proprietary...
Top Bottom