Search results

  1. BigHappyDaddy

    Connected users?

    I think I would tackle this problem in this fashion. In the FE, open a form and keep it hidden. In the timer event of this form I would probably use an IF...THEN statement. If current time is >= to "After Work hours" then close all open forms, then Application.Quit. You will have to...
  2. BigHappyDaddy

    Help with API/VBA Coding

    So copy the above code into a module. Then in the "Browse" button click event add this: me.yourTextBoxName = GetFolder()
  3. BigHappyDaddy

    Help with API/VBA Coding

    As it stands, it would probably be better to add to module and call the function in a click event of a button, then assign the value to your textbox.
  4. BigHappyDaddy

    Help with API/VBA Coding

    This is a function I use for similar requirements. It requires Microsoft Office XX.X Object Library reference. Public Function GetFolder(Optional ByVal strPath As String = "") As String Dim fldr As FileDialog Dim sItem As String Set fldr =...
  5. BigHappyDaddy

    Problem With a Split Database in a Shared Folder

    Just to add debate: http://www.access-experts.com/%5Cdefault.aspx?selection=TutorialSplitDB&sm=18 Someone else's opinion on why to split an Access database.
  6. BigHappyDaddy

    Problem With a Split Database in a Shared Folder

    Yes, among other things. It can also reduce the data corruption resulting from multiple users in the same shared front end. If each user has their own copy of the front end, nearly all of these data corruption issues are elminated, if not reduced. And there are examples of AutoUpdaters in...
  7. BigHappyDaddy

    Using info in MSysObjects to relink tables

    The code above provided by MarkK is a 95% solution. You just need to provide the correct .Connect string for your SQL Server.
  8. BigHappyDaddy

    DCount() Issue

    It may or may not be an 'empty query'. And by empty query in this context, I mean a query without any SQL statement. The line of code we are discussing assigns a SQL statement to the query named qryMTOBetweenDates. You use the field names defined in the query. Per the query strSQL = " SELECT...
  9. BigHappyDaddy

    DCount() Issue

    Just to clarify, the code that namliam submitted was Currentdb.querydefs("qryBetweenDates").sql = strSQL But you listed CurrentDb.QueryDefs("qryMTOBetweenDates").SQL = strSQL Which is fine as long as the query you have created is named "qryMTOBetweenDates". The error you are reporting leads...
  10. BigHappyDaddy

    no focus for textbox

    I believe that in order for Conditional Formatting to work, the control has to have focus. So you may have to do the Conditional Formatting in code in order to avoid giving the control the focus.
  11. BigHappyDaddy

    Help with copying/renaming file

    I know what you mean. I'm just glad I could give just a little back! :)
  12. BigHappyDaddy

    DCount() Issue

    A possibility is to copy the report's recordsource and use that to create a querydef. Then base the DCount off of the new query def. Dim qry as QueryDef Dim strSQL as String Dim lngCount as Long strSQL = Me.RecordSource Set qry = CurrentDB.CreateQueryDef("TEMP",strSQL) lngCount =...
  13. BigHappyDaddy

    Help with copying/renaming file

    Question: What exactly is in ME.txt_Title? Does it have the extension in it, or is it just the base file name? If it is just the base file name, then you need to copy the file extension from the original filename, then append it to the contents in Me.txt_Title. You could use something like...
  14. BigHappyDaddy

    DCount() Issue

    Ok, this query is doing a bit of filtering. Basiclly the query is eliminating all the records from tblData where tblData.txtField <> tblData2.txtField. So your DCount statement must make the same 'eliminations' in order to return the correct count. Maybe the simplest way is to base you dcount...
  15. BigHappyDaddy

    DCount() Issue

    What is the recordsource for the report?
  16. BigHappyDaddy

    no focus for textbox

    Have you determined how the textbox is getting the focus? ie, is the user simply clicking the control and the form allows the control to gain focus? Next, is there any code that explicitly set the focus for the textbox, or changes the Enabled / Locked statuses?
  17. BigHappyDaddy

    Blue's Age poll.

    This is almost exactly how I started. Biggest difference was that I was about 12. Almost retirement age....;)
  18. BigHappyDaddy

    Can someone explain how this is working?

    Also, your code isn't the most efficient method. The code ends up repeating a lot of the comparisons.
  19. BigHappyDaddy

    Can someone explain how this is working?

    AaronB50, Your code is a nested loop, or a loop within a loop. The outer loop is "i" and the inner loop is "x". For each increment of the outer loop i, the inner loop x has completed a complete cycle, or in this case from 0 To List13.ListCount - 1. If Me.List13.ItemData(i) =...
  20. BigHappyDaddy

    Nulls

    Sure! I would use an update query to set a "default value" to a field that contained NULL. WHERE NZ(tblName.Notes,"") = "" This WHERE statement will return all the records where Notes truly contains an empty string AND all the records where Notes is NULL. Then I would then: SET tblName.Notes...
Back
Top Bottom