Search results

  1. B

    Please help with a single T-sql line...

    This makes me miss PL-SQL. Kinda the same ordeal yes? lol
  2. B

    Sum IF ( Similar to Excel)

    SELECT DISTINCT num, Count(num) As [Count] FROM [table] GROUP BY num Edit: My mistake, I failed to read that you were placing these on a form's fields.
  3. B

    Adding sequential number to each group of data in query

    The comments beside it state to "'// Reference: Microsoft Scripting Runtime"
  4. B

    Need assistance finding code error CALCULATION #Error

    You have a + sign before the leading Nz
  5. B

    Conditional Formatting

    I'm guessing your form name in your table isnt matching your form. Same with the controls. Maybe the first control or the form name? Just a wild guess with what information we've been provided.
  6. B

    Conditional Formatting

    For my own eyes: Dim objFrc As FormatCondition Dim db As DAO.Database Dim rs As DAO.Recordset Dim strSQL As String Set db = DBEngine(0)(0) GBL_Username = Environ("username") strSQL = "Select * from CondFormat Where (UserName = '" & GBL_Username & "' OR Cond_Type = 'Global') AND ReportListID =...
  7. B

    to have the user name who enter the data within the form

    Oh sorry, I don't even know what web based access is hahahaha!
  8. B

    to have the user name who enter the data within the form

    I came up with this, but I'm not sure if there are other more effective ways of retrieving it. Public Function GetUserName() As String GetUserName = Nz(Environ("USERNAME"), vbNullString) End Function
  9. B

    Adding sequential number to each group of data in query

    This depends on the source and how your getting this data. If the data comes from an external source that you're not able to alter its generation, you're going to have to run the function routinely. If you're able to alter the generation of the data, you can run the function I provided once...
  10. B

    Adding sequential number to each group of data in query

    Private Sub SetIncrements() Dim rs As Recordset: Set rs = CurrentDb.OpenRecordset("tblData") Dim dict_scuad_variants As New Dictionary '// Reference: Microsoft Scripting Runtime Dim tmp_str As String While Not rs.EOF tmp_str = CStr(rs!scuad)...
  11. B

    Adding sequential number to each group of data in query

    This would require some VBA, is that ok for you?
  12. B

    For XML Path - to Concatenate - need to remove empty parens

    Holy moly! You have a smart boy! :) He's not too far from where I live. I'm just on the other side of main in New Brunswick, Canada
  13. B

    For XML Path - to Concatenate - need to remove empty parens

    Rx_ Normally I would dive face first into solving a problem with you, but I'm having a numb brain week! :(
  14. B

    Parse HTML using DOM without browser

    you may be able to load this driver Not sure though :P https://msdn.microsoft.com/en-us/library/aa468547.aspx
  15. B

    Copy record 'n' number of times, incrementing date...

    You could also store the end date automatically as well. Saves from human error. :P
  16. B

    Simplified report

    select style, description, sum(distance) from table_name group by style, description
  17. B

    Unwrap text for Import and reformat as table

    Whoops! Hahaha good catch. I forgot to save the last record before exiting the function. Public Sub ImportQuestions(ByVal file As String) Dim fs As New FileSystemObject If Not fs.FileExists(file) Then: Exit Sub Dim rs As Recordset: Set rs =...
  18. B

    Unwrap text for Import and reformat as table

    Now that I think of it, that error is being thrown because of a table design mismatch. The value you're not seeing is the processed string that is being passed as a key => value into the rs object. Using that table design, the function will run smooth. Also, I've found something in the code...
  19. B

    Unwrap text for Import and reformat as table

    ... the picture shows you the table structure lol Here is one of the table's design view. As for the error. Are you using the same text file that I am? If not, send me your new one and I'll work through the new variation.
Back
Top Bottom