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 strongm 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. ehicks727

    need help with regex to find address

    nevermind... I figured it out. Went a little old-school and used a lot of .indexOf()
  2. ehicks727

    need help with regex to find address

    Hi, I have a recurring pattern like this... </table> <br> <br> ACME Co. <br> 123 Main St. <br> Smallville...
  3. ehicks727

    Query question... find most occurances of offices

    I have a situation where I need to identify a 'primary county' based on number of offices. The logic is that if a doctor has a several offices, the county with the most number of offices is the 'primary county' in which he/she is located. If there is a tie, then arbitrarily pick a county (first...
  4. ehicks727

    Multiple listbox issue

    I just moved my echo $s; out of the foreach loop and it works fine. sheesh... it's been one of those days.
  5. ehicks727

    Multiple listbox issue

    I'm having an issue with the following code snippet. What I'm trying to do is append a list of states together when multiples are selected. So, if they select Alabama, it should just return AL. If they select Alabama and Georgia, then it should display AL,GA. (note the comma in between...
  6. ehicks727

    Need help with a DISTINCT and COUNT issue

    Wow! that appears to have done the trick... as always PH, you are a genius! My deepest thanks. For anyone's future reference who may look at this, I had to add 'AS xxxxx' after all each of the 'Sum(TblMemCnt.xxxxx)' in qrySumMemCnt, but other than that, worked smoothly. It's too bad Access...
  7. ehicks727

    Need help with a DISTINCT and COUNT issue

    Here's what I changed it to, following your recommendations, as best I understood them... I got an error message saying "syntax error in JOIN" I'm going to include all the fields this time because I realize that may change the equation a little, because I'm linking to another table for all...
  8. ehicks727

    Need help with a DISTINCT and COUNT issue

    Hello, here's some code below... SELECT TblLOB.rpt_cust_name AS [Customer Name], COUNT(TblLOB.state_cd) AS [State Count], <snipped a lot of other fields> FROM TblLOB INNER JOIN TblMemCnt ON TblLOB.id = TblMemCnt.id GROUP BY TblLOB.rpt_cust_name; What I'm trying to get is the second column is...
  9. ehicks727

    Clearing a listbox

    HA! I'm retarded... thanks for being my second set of eyes. :)
  10. ehicks727

    Clearing a listbox

    Hello, I'm trying to clear a listbox when the user unchecks a checkbox. It populates just fine when there's a check in the box, but I can't get the list box to clear when there is no check in the box. What happens is that whatever populated when it was check stays there when it's unchecked...
  11. ehicks727

    Problems parsing addresses

    Hi, I'm having a problem thinking through this logically and could sure use some help. I've got addresses, but the address elements are variable, meaning I could have any or all of the following address elements Business name Address 1 Address 2 City/St/Zip County The problem is that I don't...
  12. ehicks727

    Read query results into array, export to Excel based on results

    Would this have anything to do with it??? http://www.tek-tips.com/viewthread.cfm?qid=851363 This post refers to where in/after the loop it closes the (word) document. Actually, this example uses Object.Quit, not .Close This post does describe the same thing that's happening with my data. It...
  13. ehicks727

    Read query results into array, export to Excel based on results

    Here's my modified code... maybe I changed something that affected something. Sub OutputAddressWorkbooks() ' replace with table name, output file name, and field with states Dim tbl As String, outputFile As String, stateField As String tbl = "tblAddr" outputFile = "c:\data\addr" stateField =...
  14. ehicks727

    Read query results into array, export to Excel based on results

    hmm... I tested this on production data and it crashed. I'm working with tables that have up to 1 million records btw... I probably should have mentioned that, sorry. Anyway, the error I'm getting is... Run-time error '-2147417848 (80010108)': Automation error The object invoked has...
  15. ehicks727

    Read query results into array, export to Excel based on results

    Ah, I think I figured it out... I had to check the ActiveX Data Object 2.8 Library. Thank you again for being so detailed in your reply... it worked like a charm.
  16. ehicks727

    Read query results into array, export to Excel based on results

    Hey CMP, that's really great... I'm trying to get it working.. I made the table, outfile name, and state field name a variable and modified the sql statements accordingly. However, I'm getting an error on the following line (so far) Dim rstStates As New ADODB.Recordset After looking through...
  17. ehicks727

    Read query results into array, export to Excel based on results

    After searching for the answer for three days, I'm finally posting as a question. Any help is greatly appreciated. I have a table with names and addresses. One of the fields is STATE (however, it's not always called STATE, different tables may have a different name for state). I want to...
  18. ehicks727

    Make form activate at top of form, not centered

    The tab focus did the trick! thank you for your help. I didn't realize it was that simple :)
  19. ehicks727

    Make form activate at top of form, not centered

    I'm helping someone fix some forms they created. The form exceeds the screen length and it activates centered. This is a maximized form and I asked if they can make everything fit into 1024x768 and they couldn't. So the problem is that everytime the form opens, the user has to use the...

Part and Inventory Search

Back
Top