recordcount

  1. N

    Reading Oracle with macros

    Hi guys, I am trying to read data from my oracle database in the company, but I have problem with my macro code. THis is the code I found online, and it was told to work by many other users. Sub GetData() Dim SQL_String As String Dim dbConnectStr As String Set con = New...
  2. 1

    Anothe hopefully simple vba fix

    Hi all, I have inherited a file that I have made a small number of changes to. Now, when I run the macro, I keep getting the message box appear saying "please check data in row 10". Sorry it's a bit long. Thanks in advance. Sub validation(errorcheck) errorcheck = False RecordCount =...
  3. B

    VBA ADODB Record Count

    Hi, For some reason the record count for one of my sql-queries return -1. I have the exact same connection and query above, which returns the correct number of records. sqlRS.RecordCount returns the correct number of records, while sqlrs_c.RecordCount returns -1 (but ir really returns 5 to the...
  4. L

    Sum of DataEntry Form

    I'm Using a SubForm with Dataentry=Yes to type and see only the new records. in every row in the sub form I write the Number of the row in that batch using: n=recordset.recordcount+1 (at before update event of the form) now I want 2 things: 1. After Update, To summarize one of the fields (but...

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top