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 TouchToneTommy 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 LaCour

  1. LaCour

    varRecords = rs.GetRows()

    FancyPrairie I'm stepping through the code and am getting the results I am looking for using the example, varRecords = rs.GetRows(rs.RecordCount) I think I had a watch on the wrong variable ... I can't imagine that this wasn't working before. Thanks Blair
  2. LaCour

    varRecords = rs.GetRows()

    Specifying the amount of rows that you want will bring the specified amount ... pasing no argument, (), will return all rows, which is what I am using. I've looped through the record set to ensure that all of the records are there ... they are. I also tried: varRecords =...
  3. LaCour

    varRecords = rs.GetRows()

    I am using the following syntax to populate the array. varRecords = rs.GetRows() GetRows does not appear to return more than 1 record ... just a 1 dimensional array. I've looped through the recordset to check that there is data there. Maybe I am not referncing my array correctly. Should...
  4. LaCour

    Date Field - Possible to Store Year Only?

    Nope ... not related to leap year ... I am just trying to caputre financial information, year by year. I think I am goin to use a number field ... let me know if you guys think I should do different. Thanks Blair
  5. LaCour

    Date Field - Possible to Store Year Only?

    Ok, I understand ... using formatting, we can manipulate what we show and only show YYYY. Conversely, what mask would I use that would only permit the user to enter YYYY? I understand that I will store all aspects of the date YYYYMMDDSS, but I am only intereted in the YYYY. The conext is...
  6. LaCour

    Date Field - Possible to Store Year Only?

    Is it possible to only store the year in a date field YYYY? If this is not possible I will us a number field and allow the user ot select from pulldowns on the form. Thanks in advance Blair ps I think I remember doing thiw with oracle using to_char function from sysdate into a char field...
  7. LaCour

    How To: Disable Scrolling through records

    When a user is at a given form, is it possible to disable scrolling through records with the trackwheel? Thanks Blair
  8. LaCour

    How To: Disable Scrolling through records

    When a user is at a given form, is it possible to disable scrolling through records with the trackwheel? Thanks Blair
  9. LaCour

    Refreshing Form: How to move to top of ListBox with VBA

    Stephen Both of your examples highlight / select the first item in the list box. I tried them both. I found a simple explanation that works: Me.lstKeyProcess1.RowSource = Me.lstKeyProcess1.RowSource It also clears the list box ... I was doing the following (which I thought was efficient...
  10. LaCour

    Refreshing Form: How to move to top of ListBox

    Tried a bunch of things and this was it!!! Thanks
  11. LaCour

    Refreshing Form: How to move to top of ListBox with VBA

    That will select (highlight) the 0th entry in the listbox, but it does not bring focus to the top. I am guessing this will have something to do with referencing the (0) location as you suggested. I'll mess with .setfocus but I think that is in regards to the control from the perspective Let...
  12. LaCour

    Refreshing Form: How to move to top of ListBox with VBA

    I have form with many unbound controls; they are used to generate a filter for the subform when a "Search" cmd button is pressed. I also have a "Clear" cmd button that will reset all of the unbound controls and refresh the subform. Everything is working fine. However, I have a couple of...
  13. LaCour

    Refreshing Form: How to move to top of ListBox

    I have form with many unbound controls; they are used to generate a filter for the subform when a "Search" cmd button is pressed. I also have a "Clear" cmd button that will reset all of the unbound controls and refresh the subform. Everything is working fine. However, I have a couple of...
  14. LaCour

    Execute VBA on Excel File From Access VBA

    I am creating an Excel report via VBA in Access. Then, to remove the new line characters in the Excel file, I run: Cells.Replace What:=vbCr, Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False from Excel. Is it possible to run...
  15. LaCour

    Best Way To Import VBA (or equivalent functionality eg macro) in Excel

    Better yet, is ther a way to run Cells.Replace What:=vbCr, Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False in the VBA in my Access database? I should be able to reference the excel file and do from there. Let me know what...

Part and Inventory Search

Back
Top