Search results

  1. C

    hidden button is the active control

    @arnelgp Finally! an answer that helps. I was playing with this and you have just fleshed it out. Thank you so much!
  2. C

    hidden button is the active control

    I don't need to know the clickable button's size or location. I need to know the name of the field I'm occupying when I shortcut key the transparent button. It could be one of two options on each subform. The previous control works but it's dangerous? Not dependable?
  3. C

    hidden button is the active control

    Oh big misunderstanding. Not hidden but transparent. Can't see it but it's there.
  4. C

    hidden button is the active control

    OK. OK. got it.
  5. C

    hidden button is the active control

    Oh if only I would think before speaking! The answer is strControlName = Screen.PreviousControl.VALUE!!! Thanks for your replies! @Pat Hartman The tab key is right above the Capslock key. Very nasty.
  6. C

    hidden button is the active control

    OK. Point taken. I don't want to call from the field because I use the keyboard and not the mouse. Double click moves to another field, single click the same... Is there a way to use shortcut keys? Open for suggestions here. Here's where I am: Private Sub btnCalc_Click() Dim rtn As Variant Dim...
  7. C

    hidden button is the active control

    Thank you! I also discovered there's a PreviousControl. Screen.PreviousControl.Name. Discovered it (thought of it, whatever) after I'd posted.
  8. C

    hidden button is the active control

    I have a hidden button that calls a calculator (with a shortcut key). There are several fields on one form that use this button so I need to know the field name that's calling the button. Me.ActiveControl.Name returns the hidden button. How do I get the name of the field that is actually...
  9. C

    limit date formula as variable

    Yes, I know. That's what I'm using to get here. I have 3 filters on that form. I just don't filter the date values until the popup. The repetition is because the popup is used for more than one form.
  10. C

    limit date formula as variable

    I know. for just a tiny little form. It's called "big and ugly but works" ;)
  11. C

    limit date formula as variable

    Thanks to @MajP this thing is now working! Sub ListUsage() Dim ID As Long Dim NWhrStr As String Dim CWhrStr As String Dim strRange As String ID = lngInfoXchg strRange = GetDateRange("CkDate", cboDate.Value) NWhrStr = "NameID = " & ID & " And " & strRange CWhrStr = "CategoryID = " & ID & " And "...
  12. C

    limit date formula as variable

    wow. In a nutshell! THANKS!
  13. C

    limit date formula as variable

    Make fun of my formulae but they all work in queries. :p I just can't figure how to get them into a sql where statement (rowsource)
  14. C

    limit date formula as variable

    Yes, you are right. I want the formula... So it should be a string that I'm adding to a string? And then want to calculate? And it should be a sub and not a function?
  15. C

    limit date formula as variable

    I have a combobox that I want to limit dates in a listbox: Function DateCalculation(IDate As Integer) Select Case IDate Case 48 'All Dates [CkDate] Case 49 'This Month Year([CkDate]) = Year(Date) And Month([CkDate]) = Month(Date) Case 50 'Last...
  16. C

    finding an empty record

    This is a database for file drawers. Some drawers have divisions and folders. Some are completely numerical. As things get removed, the address stays but it becomes available for use. I want to locate the proper drawer, etc and use any old locations not being used or create new locations if none...
  17. C

    finding an empty record

    theDBguy... really? Ok, problem must be elsewhere. Thank you.
  18. C

    finding an empty record

    I don't care it it's the smallest I just want to pick one.
  19. C

    finding an empty record

    OKaaa.... What would that look like in the above string?
  20. C

    finding an empty record

    Well, in the query DMin requires them all to be grouped. I've tried this: lngLoc = Dmin("LocID", "tblLocation", "Nz(DLookup("LocID", "tblLocation", strFind), 0)")") but it doesn't compile
Back
Top Bottom