Search results

  1. Solo712

    "Run-time error '-2147024882 (8007000e)': Out of memory." while building ADO recordset

    CJ, this assumes the text file has line delimiters. If it is a fixed-length record text stream, you would want to use random-access IO File Read. FWIW, I think the problem is with the ADO recordset not releasing allocated memory. I would try using a DAO recordset, and if necessary do a...
  2. Solo712

    Solved error on auto refresh linked tables with VBA code

    I have noticed that the subfolder for the excel files is "utility" but for the cvs file it is "input". Do you have the csv's in the correct directory? Best, Jiri
  3. Solo712

    Getting UK postcode using address

    It's Vladimir. Like Putin. :) Best, Jiri
  4. Solo712

    Making a field invisible after checkbox

    If the two controls are on an unbound form (as it looks they are) you could simply add the statement txtbox1.visible = False to the OnLoad event. Best, Jiri
  5. Solo712

    Database Backup Issue

    I agree. Best thing is to save the whole BE of the database, before deleting anything from its tables. Using data stamp in the name of the saved copy will help retrieve the correct backup copy to which you may want to roll back. Here is an example how to back up the whole BE file with a date...
  6. Solo712

    Increment letters VBA

    One more thing, Arnel. The back-and-forth conversion btw asc numerics and letters is what is called for but your method has a problem on this line: c = DMax("theAutoGenField", "theTable", "Left(theAutoGenField,3)='" & julian & "'") & "" Since you are comparing strings of unequal length you...
  7. Solo712

    Increment letters VBA

    You are right, my bad. :) Best, Jiri
  8. Solo712

    Increment letters VBA

    Why wouldn't you give the gent what he wants? It's not that much of a big deal. Public Function GetJulianInc() As String Dim jl As String, ljl As String, hival As String, lchar As String, acode As Byte jl = Format(DatePart("y", Date), "000") hival = DMax("jul", "Jtable"): ljl =...
  9. Solo712

    Dlookup function is not working

    Try this, = DLookup("[Ser_charge]", "[Service_Charges]", "[Service_Type] ='sert' & AND [Engine_power] = " & engp) Best, Jiri
  10. Solo712

    Remote access Access (COVID!)

    Hi John. My own experience with a back-end on WAN via VPN gateways has not been good. Even with a fast network, we had frequent db corruptions. They seemed to occur regularly if a workstation had paused in communicating with a server for any amount of time. We never found out the cause of the...
  11. Solo712

    TempVars; Why and What?

    Like Colin, I have generally avoided Tempvars, in preference to global variables. I have however changed my standard in favour of "system" parameter variables kept in a table. Here are the benefits of the approach: It groups variables for easier retrieval and control. It simplifies the access...
  12. Solo712

    How Do I Kick the selected one out of a database. MSAccess 2016

    Here is a code sample. There are some externals to this but the methodology of a timed-out session should be hopefully clear. The code is class module to a timer form that runs in the background. The splash screen with a counter becomes visible two minutes before shutdown (this splash screen is...
  13. Solo712

    How Do I Kick the selected one out of a database. MSAccess 2016

    Hi, you can prevent the machine from going to sleep during the program execution by this API function: Enum Execution_State ES_SYSTEM_REQUIRED = &H1 ES_DISPLAY_REQUIRED = &H2 ES_USER_PRESENT = &H4 ES_CONTINUOUS = &H80000000 End Enum Declare Sub...
  14. Solo712

    run-time error 449 Argument Not Optional

    Just curious: on which line of code do you get the error after you comment out the line it caused the problem previously? Best, Jiri
  15. Solo712

    Excel VBA code that use form in access, is it possible?

    Sparky, the technique I use for a task like this is create a template excel sheet, and then, after getting the user report parameters through multiple choices, dump the data via Access VBA into a copy of the template Excel sheet. Best, Jiri
  16. Solo712

    run-time error 449 Argument Not Optional

    Hi Jess, I noticed that in the Qualtrics C&D Links structure there is no "header" item in the "message" member. The line causing the error dicMessage("header") = dicHeader looks strange because it is supposed to point to another dictionary structure, which is already defined. Have you...
  17. Solo712

    Access 2010 - Win 7 problem opening Excel

    Hi, I have a hunch that Ranman is on the right track and the issue has to do with mismatched references to Microsoft Excel XX.X Object Library. The problem is that sometimes the upgraded reference does not work. What you might want to try to do is to uncheck the reference, rerun the program and...
  18. Solo712

    Locked Records

    I had a similar issue a few years back and the problem was caused by corruption. I followed the process suggested by Allen Browne. Amazingly, the page is still on the web: https://bytes.com/topic/access/answers/205691-bug-locked-another-user Best, Jiri
  19. Solo712

    Making a Task Scheduler in Access 2010

    I have a setup for auto backup that directly addresses this using a timer, and two values in a parameter table, 1) auto backup time interval, 2) time auto backup last executed. When timer triggers the action i.e. last occurrence + interval >= Now(), it 1)disables the timer for the duration of...
Back
Top Bottom