Note that there are some explanatory texts on larger screens.

plurals
  1. POLoadfromText gives error 2285 (Microsoft Office Access can't create the output file)
    primarykey
    data
    text
    <p>When importing forms in access using loadfromtext, I continually get a runtime error 2285. Searching the internet shows many people with the same problem, yet no solutions. Does anyone know what causes this bug?</p> <p><strong>Edit:</strong> In addition a file called 'errors.txt' is created in the folder containing the database.</p> <p><strong>Edit: Sort of solution:</strong> I never got around to asking my system operator about the hotfixes, but the function did work as expected at home. I logged in this morning and it works here to (no changes to ms access in the mean time). I'm guessing this is an internal bug in ms access, not in the vba code.</p> <p>If you experience the same error, try a cold reboot, wait a while and hopefully you the problem goes away. If you could list the specific circumstances under which the error occured maybe the bug can eventually be found.</p> <p>Finally in related news: At <a href="http://www.mvps.org/access/modules/mdl0045.htm" rel="nofollow noreferrer">http://www.mvps.org/access/modules/mdl0045.htm</a> an access addin can be found to export your forms/tables. This one has been verfied to work, so you can check if the problem is in your own code or some access bug.</p> <p>P.S. Thanks Remou for your patience and help. I've upvoted the hotfix answer because it seems to be closest to the eventual solution.</p> <hr> <p>My version is Office Access 2003(11.8166.8221) SP3</p> <hr> <p>Yep I'm using a new database. I'm trying to set up a system where you have all form definitions as text files so that they can be version controlled, and that there is a clean database that is 'compiled' based on these text representations.</p> <p>the code I'm using is a basic</p> <pre><code>Application.LoadFromText acForms, left(filename, len(filename)-len(".frm.txt")), filename </code></pre> <p>I have checked (by stepping through the code using F8) that the formname is correct and the filename is correct and including the drivename</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload