Search results

  1. theDBguy

    Solved Conditional formatting for date and text field

    Instead of assuming the previous record is only 1 value before the current one, you could search for the highest autonumber value that is less than the current one.
  2. theDBguy

    Solved Conditional formatting for date and text field

    Glad to hear you got it working, but using -1 in your expression may not be reliable. Potentially, you could end up having gaps in your Autonumber fields and -1 will end up failing. Just a thought…
  3. theDBguy

    Solved Conditional formatting for date and text field

    Can you show us your CF expression? Are you using an Autonumber field as the primary key? Or, so you have a date field to help determine which record is the “previous” record?
  4. theDBguy

    Hello from Maryland

    Hi. Welcome to AWF!
  5. theDBguy

    Query with heading and row and listing

    Still only using my phone, so can’t see what Arnel provided, but I have a feeling it would include a similar function if it was needed. If you’re still curious to see what my function looks like, you can go to this link. SimpleCSV()
  6. theDBguy

    Query with heading and row and listing

    I can’t see all the sample data but maybe investigate using a crosstab query. Sent from phone…
  7. theDBguy

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

    Would using OpenCurrentDatabase work? Just thinking out loud...
  8. 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...
  9. 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.
  10. theDBguy

    Code library database

    One approach is to add your generic database as a reference to your project. Have you tried that?
  11. 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.
  12. theDBguy

    Hello from Devon AB Canada

    Hi. Welcome to AWF!
  13. 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.
  14. 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.
  15. 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...
  16. 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...
  17. 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...
  18. 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.
  19. 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.
  20. theDBguy

    Problems with landscape & margins

    Glad to hear you got it sorted out. Good luck with your classes.
Back
Top Bottom