User Profile

Collapse

Profile Sidebar

Collapse
ADezii
ADezii
Last Activity: Jul 18 '23, 07:04 PM
Joined: Apr 23 '06
Location: Philadelphia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ADezii
    replied to Best Reference?
    Thanks cactusdata, several individuals, including you, recommend this same Resource.
    See more | Go to post

    Leave a comment:


  • ADezii
    started a topic Best Reference?

    Best Reference?

    What is the best, comprehensive Reference for programming Windows Applications in VB.NET. I have experience in programming in general, but not VB.NET. Thanks in advance.
    See more | Go to post

  • Always words of wisdom, my friend.
    See more | Go to post

    Leave a comment:


  • It is actually a lot simpler than you may realize. The following Code will:
    1. Export the Inventory Query to the C:\Test\ Folder and name it Inventory.xls
    2. Create an Instance of Excel
    3. Open the previously exported Query and make it visible in Excel
    4. Change the Worksheet Name to something unique
    5. Save the Workbook while still keeping it open

    Code:
    Dim appExcel As Excel.Application
    Dim wb As Excel.Workbook
    Const conEXPORT_PATH
    ...
    See more | Go to post

    Leave a comment:


  • ADezii
    replied to Dealing Cards
    Back again, NeoPa. I had some free time, so I ran some Benchmarks Tests comparing both your approach (arbitrarily called the Single Pass Approach) against the Collection Approach. The results weren't exactly what I expected, but here they are:
    1. With each approach, I generated 10,000 Unique, Random Numbers.
    2. Each approach consisted of 20 Trial Runs.
    3. For a simple timing mechanism, I used the timeGetTime() API Functrion which returns the number
    ...
    See more | Go to post
    Last edited by NeoPa; Mar 8 '23, 04:52 PM. Reason: Made pic viewable in post.

    Leave a comment:


  • ADezii
    replied to Dealing Cards
    Apologies for critiquing your code so harshly, but it does have the value of illustrating that not all approaches are the same.
    Don't ever be concerned about that, your criticisms and recommendations are always welcome and appreciated. Oftentimes, I'll replace my approach with yours since it will usually be more efficient and faster, I am definitely receptive to new and better ideas.

    What I would like to do, strictly out of...
    See more | Go to post

    Leave a comment:


  • ADezii
    replied to Dealing Cards
    Hello NeoPa, good to see that an old friend is still around and active. I actually use a Dictionary Object (Microsoft Scripting Runtime) and one of it's critical Properties (Exists) to generate X unique, random numbers between a Low and High Range. Using your example above, the following Code will generate 52 random numbers between 0 and 51. Just a different approach that you may/may not agree with. For the sake of brevity and simplicity, I have...
    See more | Go to post

    Leave a comment:


  • If the General EMaIL Account (info@abccompany .com) exists in your Accounts Collection, then the following should work (basic Code):
    Code:
    Dim OutApp As Object
    Dim objAccount As Object
    Dim objMail As Object
    Dim intCtr As Integer
    
    Set OutApp = CreateObject("Outlook.Application")
    
    For intCtr = 1 To OutApp.Session.Accounts.Count
      If OutApp.Session.Accounts.Item(intCtr) = "info@abccompany.com"
    ...
    See more | Go to post

    Leave a comment:


  • Glad to help, good luck with your Project.
    See more | Go to post

    Leave a comment:


  • If I understand you correctly, then:...
    See more | Go to post

    Leave a comment:


  • Please clarify indicating exactly what is NOT to be duplicated.
    See more | Go to post

    Leave a comment:


  • Here is the Revision which hopefully contains your requested changes....
    See more | Go to post

    Leave a comment:


  • First and foremost, I agree wholeheartedly with everything that NeoPa and isladogs have stated in prior Posts. They always have, and always will, provide excellent advice that should always be taken when possible. In the event that you still need to dynamically create Controls on a Form based on the number of Fields in a Table, In have created a Demo for you that should at least point you in the right direction. As you will see, it may be a little...
    See more | Go to post
    Last edited by NeoPa; Aug 16 '22, 11:51 PM. Reason: Made pic viewable.

    Leave a comment:


  • https://support.microsoft.com/en-us/...1-00a5b6cfa045...
    See more | Go to post

    Leave a comment:


  • @isladogs:
    I executed this Code against every single Form in the Northwind 2007 Sample Database, plus some that I created (40 Forms in all/900+ Controls) with no Errors.
    Taking the above into consideration, I would also say that I should be safe with the one-line Statement. See Attached Image as far as to what Controls the Tag Property Applies To:...
    See more | Go to post

    Leave a comment:


  • @isladogs:
    Thanks, but I think that NeoPa was referring to non-Label Controls, all of which will be tested for each Form within the loop. Let's see what he has to say.
    See more | Go to post

    Leave a comment:


  • @NeoPa:
    Any Controls that have no .Tag property will crash in your example :-(
    Excellent point, one that I obviously overlooked. One question to you my friend, I executed this Code against every single Form in the Northwind 2007 Sample Database, plus some that I created (40 Forms in all/900+ Controls) with no Errors. How is this so, what have I obviously overlooked?
    See more | Go to post

    Leave a comment:


  • I created a Sub-Routine for you that will check every single Label in every Form, except the one passed to the Routine for a Tag Value that is also passed to the Routine. If a match, or matches are found, it prints the Form Name, Label Name, and Tag Value to the Immediate Window. This should be more than enough to point you in the right direction.
    Code:
    Public Sub CheckTagValue(strCurrentForm As String, strTag As String)
    Dim ctl As
    ...
    See more | Go to post

    Leave a comment:


  • ADezii
    replied to Automate macros in 20 access database files
    @hansy:
    Regarding your mentioning of various Macro Names for each DB, you can simply add a [MacroName] Field to tblDBsToRunMacr os and reference it within the Recordset Loop. There is also the added benefit of not passing a Macro Name to the RunMacro() Procedure.
    Code:
    Public Sub RunMacro()
    Dim MyDB As DAO.Database
    Dim rstDBs As DAO.Recordset
    Dim appAccess As Access.Application
     
    Set MyDB = CurrentDb
    ...
    See more | Go to post
    Last edited by NeoPa; Jul 31 '22, 03:00 PM. Reason: Made pic visible.

    Leave a comment:


  • ADezii
    replied to Automate macros in 20 access database files
    ..I could try this out but where would I define this code
    One possibility would be in the Click() Event of a Command Button.

    do macros that i need to run in each of the separate access database be renamed as same name in all ?
    Not at all. You could add the Macro Name along with Database Name in tblDBsToRunMacr os. You would then need to pass another Argument (strMacroName As String) to the RunMacr() Sub-Routine and process...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...