Search results

  1. theDBguy

    Solved VBA Database.Execute("CreateTable...") - Table created in CurrentDB, not the specified DB

    Would using OpenCurrentDatabase work? Just thinking out loud...
  2. theDBguy

    Change the background colour to red if the (word) or (words) are surrounded by a Bracket

    " " " " Just checking... Didn't happen before, and doesn't seem to be happening now... Curious... Sent from phone...
  3. theDBguy

    Change the background colour to red if the (word) or (words) are surrounded by a Bracket

    Are you looking for more than one set of brackets? Have you tried? Like “*(*)*” PS. Typing from phone, not sure why it created a smart quote. Make sure to type the above code into your project manually, don’t copy and paste.
  4. theDBguy

    Code library database

    One approach is to add your generic database as a reference to your project. Have you tried that?
  5. theDBguy

    Solved conditional formatting duplicates

    To determine the value from a “previous” record, you may need to use a subquery. Maybe try to do a search on that.
  6. theDBguy

    Hello from Devon AB Canada

    Hi. Welcome to AWF!
  7. theDBguy

    Solved conditional formatting

    My guess is that when you assign a fore color using CF, you basically are also assigning a back color as well. I guess the default color is white. If you select a different back color, you'll see the same effect as you're getting now with white.
  8. theDBguy

    How to always set focus on the control on parent form after entering data in the subform

    Hi. Try this one now... PS. It seems your db is suffering from the same side effect I noticed about skipping autonumber values.
  9. theDBguy

    How to always set focus on the control on parent form after entering data in the subform

    So, I continued with my experiment to verify this statement. I can confirm that the subform is getting dirtied when using the With and .Recordset.Addnew. However, the original text control seems to retain the focus - meaning, the subform does not become active by using this code. There is one...
  10. theDBguy

    How to always set focus on the control on parent form after entering data in the subform

    So, while waiting for a demo, I finally had a chance to fire up the laptop and do some tests. It seems to me that in the AfterUpdate event of a control, that control still has the focus. So, sending or setting the focus to that same control is unnoticeable, because it already has the focus and...
  11. theDBguy

    How to always set focus on the control on parent form after entering data in the subform

    Perhaps you are right, but I am not sure that it also means the subform was dirtied, since the code directly modified its recordset. If that is the case, then you would be correct to use the subform’s AfterUpdate event. Actually, I just re-read your post, so I may have misunderstood your...
  12. theDBguy

    How to always set focus on the control on parent form after entering data in the subform

    Don’t think I can answer that question without being able to step through the OP’s code, so a demo file would probably help us figure out the actual cause of the problem.
  13. theDBguy

    How to always set focus on the control on parent form after entering data in the subform

    I’m not sure either if that event fires if the subform’s underlying record source is updated through code.
  14. theDBguy

    Problems with landscape & margins

    Glad to hear you got it sorted out. Good luck with your classes.
  15. theDBguy

    Problems with landscape & margins

    Hi. Reports are usually based on the printer installed on the machine at the time of creation. You could try changing the printer assignment or install the same printer on your laptop. Or, last resort, try recreating the report from scratch.
  16. theDBguy

    Hello From Saudi Arabia

    Hi. Welcome to AWF!
  17. theDBguy

    Solved Position form to added record

    Did you post the code for ExecuteSQL? You might/should be able to use the LastModified property in it.
  18. theDBguy

    Solved Position form to added record

    I could be wrong, but it looks like the ID is passed to the function, so maybe you can just search for it? For example, use FindFirst? Sent from phone…
  19. theDBguy

    Hello from Canada!

    Hi Albert. Welcome back!
  20. theDBguy

    Hello from New Jersey

    Hi. Welcome to AWF!
Back
Top Bottom