Search results

  1. E

    Database Properties - Did you know

    You mean something like this? Sub asdasd() Dim prop As Object Set prop = CurrentDb.CreateProperty("CustomProp", 1, False) CurrentDb.Properties.Append prop End Sub
  2. E

    Solved Create several MergeField by VBA

    Recuerdo que hablas español. ¿Entonces tienes campos vacíos en la columna izquierda? Si es así, ¿Qué quieres hacer con esos campos? 1. Asignarles un nombre genérico 2. Ignorarlos y pasar al siguiente
  3. E

    Solved Create several MergeField by VBA

    If I understood correctly, you have one table with two columns. First column has the names of the merge fields Second column must have the merge fields If so, try the following: Sub AddFields() Dim t As Table Set t = Application.Documents(1).Tables(1) Dim i As Long For i =...
  4. E

    ACE model request

    May I suggest you simply go ahead and do the following? 1. Open the VBA IDE 2. Go to View > Watch Window 3. Right click > Add watch 4. Write "application" in the expression input box and keep procedure and module to "All Procedures" and "All Modules", respectively 5. Expand the resulting...
  5. E

    Single project composed of different sections - how supply different versions?

    It could be as simple as this: Sub CopyVersions() ' Version1: delete query1 and form1 CreateObject("Scripting.FileSystemObject").CopyFile CurrentProject.FullName, CurrentProject.Path & "\Version1.accdb", True With CreateObject("Access.Application") .OpenCurrentDatabase...
  6. E

    Form writing to wrong table

    Open the form in design mode. Then, go to Properties pane > Data tab > Record source property There should be some string in the Record source property, that's what your table is bound to. What does it say?
  7. E

    Pop-up message when converting Access report to PDF

    Thanks for the testing, Colin Here's another approach, it also hangs the Access app if the report is too big but, in return, it won't show any dialog because it runs in another instance as I was previously hinting. The code looks like this: Option Compare Database Option Explicit Sub...
  8. E

    Pop-up message when converting Access report to PDF

    I leave you with a playground file, if want to test, just open form1. I tried adding a DoEvents command in a few places of the code, but it did nothing in my tests. You could probably find where it should go with more precision. Here's what my playground setup does: 1. Open form1 2. Click on...
  9. E

    Pop-up message when converting Access report to PDF

    I tried by hiding the window using Win32 API calls and it does hide the printing dialog but it blocks you from doing anything else while it's running. After that, I ran a few tests and I think it could be possible to run the export from another instance of the application to avoid dealing with...
  10. E

    Single project composed of different sections - how supply different versions?

    Yes, it's possible. These are two options for you in the context of MS Access: 1. Provide full version and limit it based on something. 2. Provide parts of full version based on something (this is what you're describing) BUT... I would keep this in mind, though: What if two teams with the same...
  11. E

    Solved How to reinitialize a form with a fresh data-entry view?

    You could implement pagination in your class, but I understand: you have lots of data that shouldn't be brought at once. It does not even have to be pagination though, you could simply limit it to a few records that meet certain criteria. But it's a choice you've made, I also get that. If I...
  12. E

    Solved How to reinitialize a form with a fresh data-entry view?

    Excellent example, that is indeed a valid reason. Thanks. I'm still open to knowing other reasons, but I can see the use in that.
  13. E

    Solved How to reinitialize a form with a fresh data-entry view?

    Appreciate the clarification, but I still fail to see the justification for opening a recordset without records. While I understand the intention behind it, and thank you for that, I'm still trying to think of a valid scenario where this makes sense. Since others seem to use this approach, I...
  14. E

    Solved How to reinitialize a form with a fresh data-entry view?

    Could you elaborate on what specifically makes your form unclear, forcing you to clear it? Is it based on a temporary table, or does it hold data in memory? Can you elaborate on why flagging a record as emailed wouldn't be a better fit? Is there no record about the email being sent so that your...
  15. E

    How to model a software when the user wants to override Everything!

    You negotiate the scope of the work and tell them what can and can't be done based on their budget. You could create something that lets them create their own tables and forms if that's what everything and anything means for you. But I suppose it's something along the lines of building a...
  16. E

    Solved Is there a solution to getting sub forms fade in/out

    I gave it a shot and created this module: Option Explicit Private Declare PtrSafe Function SetWindowLong _ Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As LongPtr, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare PtrSafe Function GetWindowLong _ Lib "user32"...
  17. E

    Solved Is there a solution to getting sub forms fade in/out

    Subforms don't, but the form inside them does, using that handle the OP can fade their form. But there is no sample code from them to test it.
  18. E

    Solved Protect VBA Project Programmatically with SendKeys

    Let me know if you need some help.
  19. E

    Expandable Forms

    Web browser controls do it. You will have to code it yourself though. The link in post #11 will take you to an example you can adapt. If you only require one level, you have a few options, such as: 1. Report embedded in report 2. Subform height programming 3. Section height programming If you...
  20. E

    Solved Protect VBA Project Programmatically with SendKeys

    Install Visual Studio. Add a new project. Pick the Excel VSTO Add-in template (for Visual Basic) or whatever looks close. Add some controls: add a ribbon, place some groups and controls in it, make them open custom task panes or forms. Add your VBA code. Convert the incompatible bits to VB...
Back
Top Bottom