Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by BFroeschlKC

  1. BFroeschlKC

    Publisher Automation from Access Frustration

    After playing with it for a long time I figured out it may have something to do with the graphics or complexity of the Publisher Document. I had background images and a couple of other images in my template documents and when I removed them I had better success. If I reduced the number of...
  2. BFroeschlKC

    Publisher Automation from Access Frustration

    I'm trying to automate creating a publisher page (a binder cover) from a Publisher "template" document, for each person in a list. The template document "BinderCover Test.pub" has one TextFrame object with the text "Name" in it. I have some code to automate this template file. Public Sub...
  3. BFroeschlKC

    Crazy question: Can anyone help me create a routine to roll 2 dice 1000x and sum them?

    I can't help with the login problem. Sorry. I'm still noodling on your post and realize that requirements can sometimes be tricky. So, here's a solution if you need a sum of the number of rolls, not the sum of each roll. Public Sub HowToUse_DiceRolls() Dim rolls As Collection Dim oDice...
  4. BFroeschlKC

    Crazy question: Can anyone help me create a routine to roll 2 dice 1000x and sum them?

    In VBA code, I'd store them in a collection. Try this. Public Function DiceRolls(Optional NumTimes As Integer = 1000) As Collection Dim aRoll As Byte Dim i As Integer Randomize Now() Set DiceRolls = New Collection For i = 1 To NumTimes aRoll = (5 * Rnd) + 1...
  5. BFroeschlKC

    Using a variable as reference to a form

    Just checking some basic stuff here. For this code to work: With varForm .Controls("something").Property = Value .Controls("somethingelse").Property = Value End With Form "form_Test_0" would need to be open. I don't see where you open the form. Here's some code that may help. Public...
  6. BFroeschlKC

    Excel: Formula only works with certain numerical values

    dhookem is correct. This formula is just too much for Excel. That said, if you must, I think what you should do is break your formula down. Take each "unit" of the formula and put it in it's own cell so you can see the value that is being returned. In this way you can "debug" the formula...
  7. BFroeschlKC

    Capture Shift Key if Pressed on A form

    I'm not seeing a question here, but I'm guessing using the form events is not working for you. That's because you need to "select" the form to detect the "Key" events. And that is hard to do and even harder to manage. Instead, I think you want to use the KeyUp and KeyDown events on the button...
  8. BFroeschlKC

    Subform not updating in parent form

    I think you need to tell the subform to requery after selecting a prefix or breeder. The subform has no idea that the main form changed values that affect it's internal query. It works when you open the subform because then the subform's query is run again. I always use the "code behind" (not...
  9. BFroeschlKC

    Access send email attachments - problem when null or empty

    I've always done this type of check in-line as: If Len("" & V) > 0 Then AttachFile(V)
  10. BFroeschlKC

    Poll #5: What other programming languages did you use, do you use, or are planning to use/learn?

    Currently learning/using React. Mostly with AWS Amplify right now.

Part and Inventory Search

Back
Top