Search results

  1. K

    Solved Indexing a foreign key in the child table

    I'm trying to think of when you might want a relationship but not use RI. I guess maybe to improve join performance while ignoring orphans?
  2. K

    Solved Indexing a foreign key in the child table

    Yes it should but then there are lots of things that the SSMA does now that it once didn't. FYI: while following your advice to remove explicit indexes where an implicit index already exists for a FK, I found one interesting anomoly. When trying to delete one index (in table design view) I got...
  3. K

    Missing SQL Server Logs

    Tip: for testing you can use the Developer edition of SQL Server rather than Express. It's free but has all the functionality of a paid edtion, it's just the license does not allow for its use in production.
  4. K

    Solved Indexing a foreign key in the child table

    What? Why wasn't I told? so I just iterated the index collection of a table and looked at the fields and you are correct! Thanks for this enlightenment, I'll stop adding extra indexes for FKs in Access dbs. apparently the Access team decided that indexes on FKs are essential and I would agree...
  5. K

    Access no longer part of 365 business packages

    When 365 went all subscription on us, the Business plans did not include Access. Only the Enterprise plans did, then after a couple of years MS realised their mistake and added Access to the Business plans. Hence the confusion.
  6. K

    Format Condition for unbound Date controls uses US date format regardless of Regional Settings

    Yes most of us know that date time is a number, left of the decimal point is date, right is the time (at least in Access and VBA not so much in SQL Server which uses two integers). But here we are only concerned with the integer Date Value and how the UI deals with it and converts it to that...
  7. K

    Format Condition for unbound Date controls uses US date format regardless of Regional Settings

    If only it were that simple. The control knows it is a date from its format property, be it short date or whatever. Type in "2/1" and you get 02/01/2024 The issue is that that the Format Condition does not recognise it as a date regardless of the control's format property or does not respect...
  8. K

    Format Condition for unbound Date controls uses US date format regardless of Regional Settings

    Only seems to be an issue comparing dates in unbound controls Typically this is used for Report Criteria Bound controls act as advertised resolved by using Expression Is: Format([txtStart_Date],"yyyymmdd")>Format([txtEnd_Date],"yyyymmdd") Version 2311 Build 17029.20140 Region > Format: English...
  9. K

    AutoExpand on ComboBox seems broken

    Is this issue related to ANSI 92 compatibility? and will changing this resolve the issue? It did seem to in the sample accdb I created and George sent to you when I updated to 2311. Note to others: you won't find this setting in Options for Current Database, it's in the Object Designers tab
  10. K

    AutoExpand on ComboBox seems broken

    OK, I've got the same issue with a combo box. based on a table with 2 columns and only 2 rows. 365 Enterprise 32 bit, accdb in Windows 11 I've even copied a known good combo box from another application and changed the rowsource. Problem persists Tried changing the setting for this application...
  11. K

    Macro in Access VBA to find and replace text in SQL view

    The simple answer is Public Sub ReplaceInSQL() Dim qdf As DAO.QueryDef Dim strFind As String Dim strWith As String strFind = "Whatever" strTo = "Whichever" Set qdf = CurrentDb.QueryDefs("QueryName") With qdf .SQL = Replace(.SQL, strFind, strTo) End With End Sub...
  12. K

    How to test program before releasing new version?

    The simple solution is to share responsibility for testing with your client or the project manager. With the client having responsibilty for the final testing. I don't release a new version, they do. They must have a critical process test plan that they go through to ensure that there will not...
  13. K

    Access to SQL Server Migration - is there any need to migrate queries?

    @Jackoo6 - this is the link to Geroge's post with a link to the video Migrating tables to SQL Comparison
  14. K

    Multiple selection in a form

    Are you in a multi user environment? ie are you sharing your database with other users? If not then LarryE's suggestion will suffice. The only problem with this solution is, if you have multiple users working on the same table. Users' selections can be affected by each other's selections. A...
  15. K

    How to Handle Deleting Records in a Split Database

    Must agree that a Deleted Date and Deleted By column is the ideal. Then filter your record sets to Where Deleted Date Is Null. When users complain that data has gone missing and, as the developer, it's your fault, you can show them why and even recover it.
  16. K

    Solved Determining last update date of all objects

    My ultimate objective in listing objects was to be able to list object dependencies without using Track Name Autocorrect (for obvious reasons). This is rather useful. To achieve this, the process • first updates the lists of objects. • Then searches only objects that have changed to list which...
  17. K

    Solved Determining last update date of all objects

    The process I use is more about version history but it's kinda the same thing and I will run it sometimes when I just want a backup even though I'm not releasing. The process documents all the objects with Created and Modified dates, and Version Number then exports to text if they are new or...
  18. K

    System Admin Tasked with converting ADP to ACCDB

    Users should all be using their own copy of the Front End, so they should all currently have an ADP. You should be working on an accdb that you will give to everyone else once you've got it working and tested. So in the mean time other users should not be affected. The MAIN difference is that...
  19. K

    Bad Data is Bad for Business #1 and #2

    BTW "instatiatle" is just my word for instantiate. and kill the form pointer in the class Private Sub Class_Terminate() 'Clean up objects Set mfrm = Nothing End Sub or you may find your application slowing over time.
  20. K

    Bad Data is Bad for Business #1 and #2

    If you use a class, you can specify which events. Declare the class in your form's code and instatiatle it in the open event then call the class's Init method In this example I use the class to do the job of code behind a continuous form. Private WithEvents mfrm As Form 'Holds the form pointer...
Back
Top Bottom