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. KMITCH

    Position to first item in ListBox - Access 2000

    Finally found the answer... Since I was using a checkbox to fire off the code, the focus had moved away from the listbox. The following works: Me!lstPolicy.SetFocus Me!lstPolicy.ListIndex = 0 Thanks, everyone, for your help. Keith
  2. KMITCH

    Position to first item in ListBox - Access 2000

    Thanks Jeremy, It does work to set the first item in the list box to "selected" but does not work to cause the listbox to scroll back to the top. My list is longer than the listbox, so am having trouble redisplaying the top of the list. Thanks, Keith
  3. KMITCH

    Position to first item in ListBox - Access 2000

    Thanks, but the MoveFirst doesn't seem to want to work in this situation. I think that it would work if this was a normal record set but a list box seems to behave differently. Keith
  4. KMITCH

    Position to first item in ListBox - Access 2000

    Sure, After reviewing, am seeing that it is not the load or the check and clear all that is scrolling to the end of the list box. I would just like to automatically move back to the beginning of the list as a cleanup. The code below is not the load I referenced earlier...
  5. KMITCH

    Position to first item in ListBox - Access 2000

    Hello, I am using some VBA to iteratively load selected items from a ListBox into a parameter table. After the VBA finishes executing, the focus of the ListBox seems to be on the final record. Is there an easy VBA way to reset the focus to the first ListBox item while not accidentally...
  6. KMITCH

    Record count

    Rob, The approach below may not be the most efficient but seems to work. I have attached the code the "click" event of "Button1" on my form but you should be able to use the "Rst.RecordCount" wherever you desire. This uses the Form's RecordsetClone property...
  7. KMITCH

    Count records returned by a parameter query

    Rob, The approach below may not be the most efficient but seems to work. I have attached the code the "click" event of "Button1" on my form but you should be able to use the "Rst.RecordCount" wherever you desire. This uses the Form's RecordsetClone property...
  8. KMITCH

    MS Access 97 Importing from MS Excel

    A friend found the answer for me on HelpTalk. Thought I would post it here for the sake of completeness. ... Problem: lost export to file types This is a problem that can drive you up the wall trying to remedy if you don't know the reason and the fix. Uninstalling and installing Office or...
  9. KMITCH

    MS Access 97 Importing from MS Excel

    .xls is not showing up as an option in the Import window in MS Access 97. We are following the directions to remedy this by going through the Add/Remove, Date Access, Change Option but this is not helping. When it gets to the Drivers window, it shows the Microsoft Excel Driver as already...
  10. KMITCH

    Update a field's data to CAPITAL LETTERS

    Sorry folks. Works for me. I even created a table and field with the exact names as above so that I could copy and paste Psalm6229's SQL straight into the SQL view. Still worked. For what it's worth, I defined CKPCode as a text field. Also am using Access 97. I'll keep thinking. Here is the...
  11. KMITCH

    How to determine the earliest date in three records?

    Data: SerialNo FailDate StartTime X 01/01/2001 01/01/2001 X 01/01/2001 01/02/2001 X 01/01/2001 01/03/2001 Y 01/02/2001 02/05/2001 Y 01/02/2001 02/06/2001 Y 01/02/2001 02/07/2001 SQL: SELECT Table1.SerialNo, Table1.FailDate, Min(Table1.StartTime) AS MinOfStartTime FROM Table1 GROUP BY...
  12. KMITCH

    Update a field's data to CAPITAL LETTERS

    UPDATE Table1 SET Table1.name= UCase([Table1]![name]); Try the SQL above. UCase is the function you are looking for. Hope this helps. Keith
  13. KMITCH

    Simple problem - please help if you can!!

    Try using the DCount function. This saves you from having to instantiate a recordset. Here's an example from the Access 97 help: Syntax: DCount(expr, domain[, criteria]) Example: intX = DCount("[ShippedDate]", "Orders", _ "[ShipCountry] = 'UK' AND [ShippedDate] >...
  14. KMITCH

    Deleting Records in Data Sheet(Slow) vs Macro(Fast)

    Thanks Doug. I'll take that answer. Keith
  15. KMITCH

    Deleting Records in Data Sheet(Slow) vs Macro(Fast)

    Often times I need to refresh(empty) 1 or more tables prior to running a process. I've noticed that, when I use a Delete in a Macro or Module to do this, the records are deleted instantaneously, even for relatively large numbers of records. Selecting all records and deleting via the...
  16. KMITCH

    Append query via code

    GGW, I'm thinking the modifications below will come closer to accomplishing what you are after. Hope this helps, Keith Dim MyDB As Database Dim MyQDef As QueryDef Dim SQLString As String Dim rstSchedule As Recordset Dim rstMasterQuestionList As Recordset Dim Expr1 As Long Dim Expr2 As Long...
  17. KMITCH

    MS Access 2000 SQL - Join 2 tables using BETWEEN

    Thanks Terry! That was exactly what I needed. Keith
  18. KMITCH

    MS Access 2000 SQL - Join 2 tables using BETWEEN

    I would like to be able to join two tables using something like 'Table1.Age BETWEEN Table2.MinAge and Table2.MaxAge'. Is this possible in access? Thanks, Keith
  19. KMITCH

    Using Automation (Access 97) to call MS Excel Median

    Wow! Thanks Kathryn. This seems like a much better solution than trying to force fit to Excel. Will try it. -Keith
  20. KMITCH

    Using Automation (Access 97) to call MS Excel Median

    ... Set obj = CreateObject("Excel.Application") MsgBox obj.Application.Median(1,2,5,7,8) obj.Quit Set obj = Nothing ... The code above works fine to return the Median of the set of numbers hardcoded. What I really need though is the ability to use...

Part and Inventory Search

Back
Top