Search results

  1. T

    Solved-Trying to Delete empty records!

    Not related to the Delete query, but re your database design: I question the StableName field in tblHorseInfo. Don't horses get traded all the time? Then you may need a new table tblStableHistory that records where the HorseID was from time to time.
  2. T

    Search Fields

    ssms implies a SQL Server database. You should be able to query sys.columns for fields by that name. Something like: select object_name(object_id) as theTable, name from sys.columns where name = '???';
  3. T

    Solved Invalid Syntax

    Probably best NOT to do that in an expression. I don't know what the values of 0 and 12 signify, but let's say they are "Points" given to such status. UNDOUBTEDLY over time the salary cutoff values will change. It seems best to store this in a new table tblPoints: BasicSalaryUpTo / MaritalStatus...
  4. T

    Does Microsoft Access 2024 (Professional Plus 2024) Export Forms as Text for Re-Import?

    With regard to "undocumented": the procedures are (of course) in the type library, and the Object Browser (F2) will reveal them if you turn on the "Show Hidden Members" option.
  5. T

    Does Microsoft Access 2024 (Professional Plus 2024) Export Forms as Text for Re-Import?

    Open the Immediate window (Ctrl+G) Type: Application.SaveAsText and a <space>, and follow intellisense prompt. Similar for Application.LoadFromText.
  6. T

    Strange behavior after macro conversion

    This is a normal error that gets raised when you (or your code) cancel certain actions, such as OpenForm or OpenReport. That's why in Northwind Dev Edition's error handler, we wrote: If lngError = 2501 Then Exit Sub '2501 = The OpenForm action was canceled. Not really an error. BTW, I...
  7. T

    DAO to ADO

    I'm curious what arguments pro and con you end up with. Please share your thoughts when you get to that point.
  8. T

    OOP in Access Applications

    I like using classes in Access, in a number of ways. * Static classes such as clsErrorHandler in Northwind 2 Dev Edition (NW2), to further encapsulate error handler functions. * Form subclassing, so we can have common functionality (responding to certain common events) implemented once, and...
  9. T

    Solved Need help with before update code logic?

    The zero-code solution is to make that field required in the table. That is also the best idea from a database design point of view.
  10. T

    Hi from the Netherlands

    Welcome to the forum! Tom van Stiphout, from Phoenix, Arizona.
  11. T

    Record is deleted

    It's a really bad idea to have a table without a Primary Key. However, just adding one does not fix the problem. Moving the line "Set rs1 = db.OpenRecordset("listtables", dbOpenDynaset)" to below "DoCmd.SetWarnings True" does solve the original problem. You then have a new problem: Error 3021 =...
  12. T

    Should we have a secton for AI?

    If such forum has technical content, I will follow it. If it is watercooler content, then not so much.
  13. T

    Import-export permit tracking system

    In one project I have tblDocuments with all documents. The filename references the document in a server folder. All 120K docs are in the same folder. The OrigFileName allows for reconstructing the file in the TEMP folder with the original filename. After that, I have tables that link the records...
  14. T

    FE/BE Should Any Tables be Distributed in FE?

    Tables can be in the FE. For example, I keep tblSystemSettings_FE in the FE. It includes a field indicating where the BE is. Your tblReports can certainly be in the FE as well. I'm not so sure about lookup tables (tblTaxLine and tblAccountTypes appear to be such tables): since their ID values...
  15. T

    Conversion to 64-bit

    Assuming you're not targeting A2007, this is not needed. And hWnd is a LongPtr.
  16. T

    The code in this project must be updated for use on 64-bit systems.

    This may help: https://www.microsoft.com/en-us/download/details.aspx?id=9970&msockid=2f33863951c960d80163931050b66168
  17. T

    ms acces

    File >New gives you access to the templates. I can recommend Northwind Starter Edition. It is a showcase of what is possible with Access, and it comes with lots of documentation.
  18. T

    "Cannot open a form whose underlying query contains" error...

    I have seen this too. Sorry, I don't know how to fix this, other than to close forms after they have been idle for a while.
  19. T

    Question about sorting

    Did you know that you can calculate running totals in a report? https://support.microsoft.com/en-us/office/summing-in-reports-ad4e310d-64e9-4699-8d33-b8ae9639fbf4 Wrt sorting: it is customary to base a report on a query, not a recordset. That query can be unordered. Then in the report you use...
Back
Top Bottom