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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Sandman83

  1. Sandman83

    Shell only outputting first two lines

    Hi All; I am trying to use Access to to get the IP Address of multiple PC's via NSLookup. I am using the following code to output the information to a txt file; When ever I run this code from an Access module I only get the first two lines of output.dblRetVal = Shell("cmd /c nslookup.exe...
  2. Sandman83

    Query w/Custom Function Works Sometimes

    Oh the power of the Almighty JOIN!! I bow before thee. I ended up using the following: DELETE tblTFN.* FROM tblTFN LEFT JOIN tblTempTFN ON (Replace(Replace(Replace(tblTempTFN.TFN, "-", ""), "(", ""), ")", ""))=tblTFN.TFN WHERE tblTempTFN.TFN is Null; The difference between using replace and...
  3. Sandman83

    Query w/Custom Function Works Sometimes

    Nope, wouldn't be often. This is a side project for me so no hard time frame. In these cases I like to at least try to build it as well as I can, that way I can hopefully learn something useful in the process.
  4. Sandman83

    Query w/Custom Function Works Sometimes

    Thx Andy, I wasn't thinking about putting it directly in the query. I copy & pasted your query above to run a test. On the upside, it does work even if the VBA editor had been opened. On the downside, the UDF I posted above is about 900% faster. (6.2 seconds vs 58.6 seconds) I'll try using a...
  5. Sandman83

    Query w/Custom Function Works Sometimes

    Easier? Sure, but wouldn't that be slower since it needs to check every character to see if it is one of the characters that needs replaced?
  6. Sandman83

    Query w/Custom Function Works Sometimes

    Thx for the reply. That makes sense for why it takes so long while the VBA editor is open. (Your formula would make it about 800k iterations of the function.) I'm still not sure why it would go sooooo much faster if the VBA editor has not been opened.
  7. Sandman83

    Query w/Custom Function Works Sometimes

    I have a query with a custom function that works fine as long as I have not opened up the VBA editor. If that is/has been opened the query loops indefinitely calling the function with new data over and over looping through all the records and starting over again. The function is a simple string...
  8. Sandman83

    Oracle XE install breaks existing Oracle App

    Hi All, I have an Access front end that I use to query an Oracle 10g database. After installing Oracle XE (I've tried both 10g and 11g) the Access front end is now longer able to connect and gives me a 3151 error. Uninstalling corrects the problem. Any ideas why this might be happening?
  9. Sandman83

    Get worksheet name based on cell value lookup

    Wow! That's about the ugliest thing I've ever seen, lol. Works great though. Thanks a bunch. It never even dawned on me to just hard code the sheet names.
  10. Sandman83

    Get worksheet name based on cell value lookup

    Hi All, I have a list of phone numbers on the seventh worksheet of a workbook. These same phone numbers appear in multiple worksheets (each number appearing only once across the first six worksheets.) I'm trying to figure out a formula (tried using VLOOKUP with no success) that will lookup...
  11. Sandman83

    IN clause with subquery retunrs 0 results

    Thx Carp, TRIM worked.
  12. Sandman83

    IN clause with subquery retunrs 0 results

    Hi Turkbear Unfortunately since the dial_digit field has entries with '#' and/or '*' I get an invalid number error when trying to convert dial_digit to a number.
  13. Sandman83

    IN clause with subquery retunrs 0 results

    Thx for the reply cmmrfrds. The field can be two or three digits. I tried (TO_CHAR (spd_num, '99') to see if that would return results for at least the two digit numbers, but still got zero results. The fact that (TO_CHAR (149) does return any records while just '149' does makes me wonder if...
  14. Sandman83

    IN clause with subquery retunrs 0 results

    Hi All, I am running a query with a subuery in an IN clause and am getting back zero results. The query is; SELECT COUNT(*), dial_digit FROM calldetail WHERE dial_digit IN (SELECT TO_CHAR (spd_num) FROM speed) GROUP BY dial_digit ORDER BY dial_digit If I run just the subquery I get the...
  15. Sandman83

    Legend like functionality

    Hi All, I'm new to Visio and am trying to figure out how I can mimic the expanding functionality of the Legend shape. I have multiple custom properties for a custom shape would like to be able to assign a value to any combination of the properties and have only those properties display. Any...

Part and Inventory Search

Back
Top