Search results

  1. S

    SelLength overflow error

    Setfocus selects everything, doesn't it?
  2. S

    Sorting Text as a number in Access

    SELECT * FROM Table1 ORDER BY Len([Operation]) & [Operation] edit arnelgp's looks like it may do a similar thing more thoroughly.
  3. S

    Help with Code

    It thinks InGroup is a field. Just add 'Dim Ingroup' or use a different name. Edit. Sorry brain fade.
  4. S

    Help with Code

    ingroup isn't joined on any other field, so you are performing the same lookup for every record for no reason.
  5. S

    open a dir and filter files with * ?

    Create a new form. Add a list box called 'FileList'. Add a command button called 'btnSearch'. Add a textbox called 'txtClient'. Paste the code into the form's module. Const FOLPATH As String = "\\server3\d\Excel Files CLients\Accounts\" Private Sub btnSearch_Click() With FileList...
  6. S

    Maintain Database for Large No of Records

    1GB is half the maximum size of a database so a filtered recordset shouldn't be a problem.* The problem is the amount of forward planning required before you commit to the final solution. *temporary storage exceeding 2gb could be.
  7. S

    Maintain Database for Large No of Records

    You'd build the result up in a temp table rather than using UNION. Delete * from tmp INSERT INTO tmp SELECT * FROM [2017.accdb].table1 WHERE field1='foo' INSERT INTO tmp SELECT * FROM [2016.accdb].table1 WHERE field1='foo' INSERT INTO tmp SELECT * FROM [2015.accdb].table1 WHERE field1='foo'...
  8. S

    db.recordsaffected after append query is always 0

    Not really. I had the wrong end of the stick, thought you were appending to Excel. I've never used sharepoint. Maybe it just doesn't send a message back.
  9. S

    vba to change region Format

    You don't change user settings unless you want to be hated. It's easy enough to create your own translator. Sub eg() Debug.Print "today is " & DayName & " which is " & DayName(romanian) & " in romanian and " & DayName(french) & " in french" Debug.Print "tomorrow is " & DayName(...
  10. S

    db.recordsaffected after append query is always 0

    When creating a linked table to Excel, Access says...
  11. S

    Create Table in Sql Database using Access VBA

    A passthrough query sends SQL directly to the server. Access doesn't process anything. Any valid SQL should work. It's no different than using ADO. You create the connection, send the SQL to the server.
  12. S

    Create Table in Sql Database using Access VBA

    http://www.dbforums.com/showthread.php?1006185-Writing-Pass-Through-Queries-in-VBA ...or just connect with ADO.
  13. S

    Filter a Listbox with text from Textbox

    Like "*" & [forms]![frmContactHistory]![Text26] & "*"
  14. S

    MsgBox Problems

    Your msgbox code looks fine. Add a breakpoint and step through the code. Have you tried requery in place of/as well as refresh? (If the command is aborted you don't need to refresh/requery.) If your query modifies data, you should use docmd.runsql Or better yet currentdb.execute "queryname"...
  15. S

    Insert records of an array

    FROM [Text;Database=path; Doesn't make sense. You haven't provided a table name and the brackets aren't closed. FROM [path].[table] somestring = "... from [" & path & "].[" & table & "]" Edit: kudos for making me Google getrows.
  16. S

    Automated Alert/Message Box

    Nope. Works ok here. I didn't use a table called "MessagesReviewed"...
  17. S

    Property sheet not working

    Yes. Use the Dir() functionin a loop Const folder As String = "c:\...\*.txt" dim FileName as string FileName = Dir(folder) Do Until FileName = "" select... ... End Select FileName = Dir Loop
  18. S

    Property sheet not working

    How is £70 better than a bit of work you can do yourself for free?
  19. S

    Property sheet not working

    Well at a glance, the code labels each file with the object type, so when you are loading them back in check the filename and replace the constants accordingly. select case true case left(filename,len("form_")) = "form_" Application.LoadFromText acForm, filenameWithoutType...
  20. S

    Property sheet not working

    Save everything as text and import into a fresh db. https://access-programmers.co.uk/forums/showthread.php?t=99179 Comment out the tabledef export stuff, import them as normal.
Back
Top Bottom